Skip to content

Commit

Permalink
Revert "fix(test): Rerender"
Browse files Browse the repository at this point in the history
This reverts commit a017ffc.
  • Loading branch information
sidharthv96 committed Oct 10, 2022
1 parent 60e4585 commit 23e590e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cypress/platform/rerender.html
Expand Up @@ -19,10 +19,9 @@
function rerender(text) {
const graphText = `graph TD
A[${text}] -->|Get money| B(Go shopping)`;
mermaid.mermaidAPI.renderAsync('id', graphText).then((svg) => {
console.log('\x1b[35m%s\x1b[0m', '>> graph', svg);
document.getElementById('graph').innerHTML = svg;
});
const graph = mermaid.mermaidAPI.render('id', graphText);
console.log('\x1b[35m%s\x1b[0m', '>> graph', graph);
document.getElementById('graph').innerHTML = graph;
}
</script>
<button id="rerender" onclick="rerender('Saturday')">Rerender</button>
Expand Down

0 comments on commit 23e590e

Please sign in to comment.