mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 11:29:42 +02:00
Correct expected error message in unit test
This commit is contained in:
@@ -49,7 +49,7 @@ describe('diagram detection', () => {
|
|||||||
"Parse error on line 2:
|
"Parse error on line 2:
|
||||||
graph TD; A-->
|
graph TD; A-->
|
||||||
--------------^
|
--------------^
|
||||||
Expecting 'AMP', 'ALPHA', 'COLON', 'PIPE', 'TESTSTR', 'DOWN', 'DEFAULT', 'NUM', 'COMMA', 'MINUS', 'BRKT', 'DOT', 'PUNCTUATION', 'UNICODE_TEXT', 'PLUS', 'EQUALS', 'MULT', 'UNDERSCORE', got 'EOF'"
|
Expecting 'NODE_STRING', 'COLON', 'PIPE', 'TESTSTR', 'DOWN', 'DEFAULT', 'NUM', 'COMMA', 'MINUS', got 'EOF'"
|
||||||
`);
|
`);
|
||||||
await expect(getDiagramFromText('sequenceDiagram; A-->B')).rejects
|
await expect(getDiagramFromText('sequenceDiagram; A-->B')).rejects
|
||||||
.toThrowErrorMatchingInlineSnapshot(`
|
.toThrowErrorMatchingInlineSnapshot(`
|
||||||
|
@@ -504,7 +504,6 @@ clickStatement
|
|||||||
|
|
||||||
styleStatement:STYLE SPACE idString SPACE stylesOpt
|
styleStatement:STYLE SPACE idString SPACE stylesOpt
|
||||||
{$$ = $1;yy.addVertex($3,undefined,undefined,$5);}
|
{$$ = $1;yy.addVertex($3,undefined,undefined,$5);}
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
linkStyleStatement
|
linkStyleStatement
|
||||||
|
Reference in New Issue
Block a user