mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
chore: Fix snapshots
This commit is contained in:
@@ -154,7 +154,7 @@ describe('when using mermaid and ', () => {
|
|||||||
await expect(
|
await expect(
|
||||||
mermaid.parse('this is not a mermaid diagram definition')
|
mermaid.parse('this is not a mermaid diagram definition')
|
||||||
).rejects.toThrowErrorMatchingInlineSnapshot(
|
).rejects.toThrowErrorMatchingInlineSnapshot(
|
||||||
'"No diagram type detected for text: this is not a mermaid diagram definition"'
|
'"No diagram type detected matching given configuration for text: this is not a mermaid diagram definition"'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ describe('when using mermaid and ', () => {
|
|||||||
await expect(
|
await expect(
|
||||||
mermaid.parse('this is not a mermaid diagram definition')
|
mermaid.parse('this is not a mermaid diagram definition')
|
||||||
).rejects.toThrowErrorMatchingInlineSnapshot(
|
).rejects.toThrowErrorMatchingInlineSnapshot(
|
||||||
'"No diagram type detected for text: this is not a mermaid diagram definition"'
|
'"No diagram type detected matching given configuration for text: this is not a mermaid diagram definition"'
|
||||||
);
|
);
|
||||||
expect(parseErrorWasCalled).toEqual(true);
|
expect(parseErrorWasCalled).toEqual(true);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user