From e567deb2171b85f4a6326222804bc049a0bfcdde Mon Sep 17 00:00:00 2001 From: Reda Al Sulais Date: Sun, 13 Aug 2023 00:22:39 +0300 Subject: [PATCH] fix info unit test --- packages/mermaid/src/diagrams/info/info.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/diagrams/info/info.spec.ts b/packages/mermaid/src/diagrams/info/info.spec.ts index 0ac8cce550..cbe7bd85e5 100644 --- a/packages/mermaid/src/diagrams/info/info.spec.ts +++ b/packages/mermaid/src/diagrams/info/info.spec.ts @@ -4,6 +4,6 @@ import { db } from './infoDb.js'; describe('info', () => { it('should handle an info definition', () => { const str = `info`; - expect(parse(str)).not.toThrow(); + expect(() => { parse(str) }).not.toThrow(); }); });