fix: Tests

This commit is contained in:
Sidharth Vinod
2022-10-10 21:57:22 +08:00
parent 960ea450e9
commit ba436cc37a
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
function rerender(text) {
const graphText = `graph TD
A[${text}] -->|Get money| B(Go shopping)`;
mermaid.mermaidAPI.render('id', graphText).then((svg) => {
mermaid.mermaidAPI.renderAsync('id', graphText).then((svg) => {
console.log('\x1b[35m%s\x1b[0m', '>> graph', svg);
document.getElementById('graph').innerHTML = svg;
});