diff --git a/src/mermaid.spec.ts b/src/mermaid.spec.ts index fda02b52d..b429d07ec 100644 --- a/src/mermaid.spec.ts +++ b/src/mermaid.spec.ts @@ -54,6 +54,8 @@ describe('when using mermaid and ', function () { node.appendChild(document.createTextNode('graph TD;\na;')); mermaid.initThrowsErrors(undefined, node); + // mermaidAPI.render function has been mocked, since it doesn't yet work + // in Node.JS (only works in browser) expect(mermaidAPI.render).toHaveBeenCalled(); }); });