From 3faf9077fc584c4738d5fa3d71a80ee790dcb342 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 30 Nov 2023 02:51:13 +0400 Subject: [PATCH] Up tests --- test/specs/grapesjs/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/specs/grapesjs/index.ts b/test/specs/grapesjs/index.ts index a7eed2d2a..32eab8d04 100644 --- a/test/specs/grapesjs/index.ts +++ b/test/specs/grapesjs/index.ts @@ -496,8 +496,7 @@ describe('GrapesJS', () => { editor.select(el1); expect(editor.getSelected()).toBe(el1); expect(editor.getSelectedAll().length).toBe(1); - // Select via element - editor.select(el2.getEl() as any); + editor.select(el2); expect(editor.getSelected()).toBe(el2); expect(editor.getSelectedAll().length).toBe(1); // Deselect via empty array @@ -508,7 +507,7 @@ describe('GrapesJS', () => { test('Select multiple components', () => { // Select at first el1 and el3 - editor.select([el1, el3.getEl() as any]); + editor.select([el1, el3]); expect(editor.getSelected()).toBe(el3); expect(editor.getSelectedAll().length).toBe(2); // Add el2