mirror of
https://github.com/codex-team/editor.js
synced 2026-03-17 08:05:47 +01:00
Eslint fix
This commit is contained in:
parent
73420f17c2
commit
e858aaaa9a
1 changed files with 5 additions and 2 deletions
|
|
@ -167,15 +167,16 @@ describe('Copy pasting from Editor', () => {
|
|||
/**
|
||||
* Need to wait for custom data as it is set asynchronously
|
||||
*/
|
||||
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
||||
cy.wait(0).then(() => {
|
||||
expect(clipboardData['application/x-editor-js']).not.to.be.undefined;
|
||||
|
||||
const data = JSON.parse(clipboardData['application/x-editor-js']);
|
||||
|
||||
expect(data[0].tool).to.eq('paragraph');
|
||||
expect(data[0].data).to.deep.eq({text: 'First block'});
|
||||
expect(data[0].data).to.deep.eq({ text: 'First block' });
|
||||
expect(data[1].tool).to.eq('paragraph');
|
||||
expect(data[1].data).to.deep.eq({text: 'Second block'});
|
||||
expect(data[1].data).to.deep.eq({ text: 'Second block' });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -219,6 +220,7 @@ describe('Copy pasting from Editor', () => {
|
|||
/**
|
||||
* Need to wait for custom data as it is set asynchronously
|
||||
*/
|
||||
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
||||
cy.wait(0).then(() => {
|
||||
expect(clipboardData['application/x-editor-js']).not.to.be.undefined;
|
||||
|
||||
|
|
@ -258,6 +260,7 @@ describe('Copy pasting from Editor', () => {
|
|||
/**
|
||||
* Need to wait for custom data as it is set asynchronously
|
||||
*/
|
||||
// eslint-disable-next-line cypress/no-unnecessary-waiting
|
||||
cy.wait(0).then(() => {
|
||||
expect(clipboardData['application/x-editor-js']).not.to.be.undefined;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue