mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 10:54:15 +01:00 
			
		
		
		
	Add test for alias
This commit is contained in:
		| @@ -39,6 +39,15 @@ Person(customerA, "Banking Customer A", "A customer of the bank, with personal b | ||||
|     }); | ||||
|   }); | ||||
|  | ||||
|   it('should parse the alias', function () { | ||||
|     c4.parser.parse(`C4Context | ||||
| Person(customerA, "Banking Customer A")`); | ||||
|  | ||||
|     expect(c4.parser.yy.getC4ShapeArray()[0]).toMatchObject({ | ||||
|       alias: 'customerA', | ||||
|     }); | ||||
|   }); | ||||
|  | ||||
|   it('should parse the label', function () { | ||||
|     c4.parser.parse(`C4Context | ||||
| Person(customerA, "Banking Customer A")`); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Bartholomae
					Daniel Bartholomae