striven-editor

Maintained and contributed to an open source WYSIWYG editor as an internship project that made it to production and was adopted by the company I was working at.
git clone https://unitehenry.com/git/striven-editor.git
Log | Files | Refs | README | LICENSE

commit 49d391c1100d31b690c929bcc8f1ed14883c8383
parent b939f9b3af9af9111da28b9f2bc7c2671937f070
Author: m1ga <migamiga@web.de>
Date:   Thu,  1 Oct 2020 17:43:35 +0200

use assert

Diffstat:
Mdemo/src/test.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/demo/src/test.js b/demo/src/test.js @@ -167,15 +167,18 @@ describe('Regression Tests', () => { it('should open/close link menu', (done) => { const se = getEditor(); + var wasVisible = false; se.openLinkMenu(); assert.exists(document.querySelector('#link-menu'), 'menu is there'); se.openLinkMenu() setTimeout(function() { if (window.getComputedStyle(document.getElementById("link-menu")).visibility == "visible") { + wasVisible = true; se.closeLinkMenu(); setTimeout(function() { if (window.getComputedStyle(document.getElementById("link-menu")).visibility == "hidden") { + assert.isTrue(wasVisible) done(); } }, 500);