From e858aaaa9a2bdeaf99d1ed469dc75d265cd103ef Mon Sep 17 00:00:00 2001 From: Georgy Berezhnoy Date: Thu, 8 Apr 2021 19:26:08 +0300 Subject: [PATCH] Eslint fix --- test/cypress/tests/copy-paste.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/cypress/tests/copy-paste.spec.ts b/test/cypress/tests/copy-paste.spec.ts index 82019fd5..97f6a0ec 100644 --- a/test/cypress/tests/copy-paste.spec.ts +++ b/test/cypress/tests/copy-paste.spec.ts @@ -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;