From 23e590e09bcda31620bfe71b97354206abd8dde2 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Mon, 10 Oct 2022 22:04:33 +0800 Subject: [PATCH] Revert "fix(test): Rerender" This reverts commit a017ffc3c947084d2977a12aa75c831574ed19b9. --- cypress/platform/rerender.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cypress/platform/rerender.html b/cypress/platform/rerender.html index 0d7588ef5..ab1b8e009 100644 --- a/cypress/platform/rerender.html +++ b/cypress/platform/rerender.html @@ -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; }