Merge branch 'sidv/esbuild' into sidv/vitest

* sidv/esbuild:
  Fix doc formatting
  Fix mermaidAPI mock
This commit is contained in:
Sidharth Vinod
2022-09-07 12:06:51 +05:30

View File

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