chore: Fix snapshots

This commit is contained in:
Sidharth Vinod
2023-02-28 16:58:04 +05:30
parent 56d27d555b
commit 1981f12976

View File

@@ -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);
}); });