From 551e0ec32a4340525725662d662cb4e5a67482f7 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 23 Apr 2022 07:42:22 +0200 Subject: [PATCH] Fix index test --- test/specs/grapesjs/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/specs/grapesjs/index.js b/test/specs/grapesjs/index.js index 8b3496f0c..df9af29e1 100644 --- a/test/specs/grapesjs/index.js +++ b/test/specs/grapesjs/index.js @@ -99,10 +99,10 @@ describe('GrapesJS', () => { test('Editor canvas baseCSS defaults to sensible values if not defined', () => { config.components = htmlString; config.protectedCss = ''; - - var editor = obj.init(config); - - expect(window.frames[0].document.documentElement.outerHTML.replace(/\s+/g, ` `)).toContain(`body { margin: 0;`); + obj.init(config); + expect(window.frames[0].document.documentElement.outerHTML.replace(/\s+/g, ` `)).toContain( + `body { background-color: #fff` + ); }); test('Init editor with html', () => {