From ee556f81e25d1c41771b6c7bb91b1a0960f66e6f Mon Sep 17 00:00:00 2001 From: Aliullov Vlad Date: Mon, 23 Dec 2024 22:37:48 +0400 Subject: [PATCH] WIP. check test --- packages/devextreme-themebuilder/jest.config.js | 2 +- packages/devextreme-themebuilder/tests/modules/builder.test.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/devextreme-themebuilder/jest.config.js b/packages/devextreme-themebuilder/jest.config.js index fe184e8c9fe6..b9a4fcddb77e 100644 --- a/packages/devextreme-themebuilder/jest.config.js +++ b/packages/devextreme-themebuilder/jest.config.js @@ -10,7 +10,7 @@ module.exports = { }], }, testMatch: [ - '**/tests/**/*.test.ts', + '**/tests/**/builder.test.ts', ], coverageThreshold: { global: { diff --git a/packages/devextreme-themebuilder/tests/modules/builder.test.ts b/packages/devextreme-themebuilder/tests/modules/builder.test.ts index 6905643753f9..8943a9f14cae 100644 --- a/packages/devextreme-themebuilder/tests/modules/builder.test.ts +++ b/packages/devextreme-themebuilder/tests/modules/builder.test.ts @@ -9,7 +9,6 @@ const buildTimeout = 150000; const normalizeCss = (css: string): string => css .toLowerCase() .replace(/\s*\/\*[\s\S]*?\*\/\s*/g, '') - .replace(/\s+/g, '') .trim(); function findDifference(str1: string, str2: string) { @@ -47,7 +46,7 @@ describe('Builder integration tests', () => { const themeBuilderCss = normalizeCss(result.css); const cssPath = path.resolve(__dirname, '../../../devextreme/artifacts/css/dx.light.css'); const distributionCss = normalizeCss(readFileSync(cssPath, 'utf8')); - console.log('----findDifference------>', findDifference(themeBuilderCss,distributionCss)); + expect(themeBuilderCss).toBe(distributionCss); }); }, buildTimeout);