There was an error while loading. Please reload this page.
1 parent 02f3ad6 commit 19d25b0Copy full SHA for 19d25b0
1 file changed
test/tests/acceptance/esm.test.esm.js
@@ -5,13 +5,14 @@ import { Jodit } from '../../../build/esm/index.js';
5
import { expect } from 'chai';
6
7
describe('ESM build', () => {
8
- it('Should create Jodit instance', () => {
+ it('Should create Jodit instance', async () => {
9
const textarea = document.createElement('textarea');
10
document.body.appendChild(textarea);
11
textarea.value = '<p>test</p>';
12
13
const editor = Jodit.make(textarea);
14
expect(editor instanceof Jodit).is.true;
15
+ await editor.waitForReady();
16
17
expect(editor.value).eq(textarea.value);
18
expect(Jodit.plugins.size).above(60);
0 commit comments