From 87c52b5cb346f8afbc9a6109847a432a29ad559f Mon Sep 17 00:00:00 2001 From: Olezhka-web Date: Wed, 27 Sep 2023 14:12:52 +0300 Subject: [PATCH] test(eleventy-plugin-styles): removed critical test --- .../test/critical.spec.ts | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 packages/eleventy-plugin-styles/test/critical.spec.ts diff --git a/packages/eleventy-plugin-styles/test/critical.spec.ts b/packages/eleventy-plugin-styles/test/critical.spec.ts deleted file mode 100644 index 05529cb..0000000 --- a/packages/eleventy-plugin-styles/test/critical.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { sep } from 'path'; - -import { separateCriticalCSS } from '../src/critical'; -import { getEleventyOutputDirectory } from '../../common/src/linker'; - -const mockDataOptions = { - outputPath: `_site${sep}index.html`, -}; - -const mockDataHtmlFile = ` - - -`; - -// TODO TEST (NOT WORKING!) -describe('separateCriticalCSS', () => { - it('should return ...', async () => { - // const result = await separateCriticalCSS({ - // html: mockDataHtmlFile, - // buildDirectory: getEleventyOutputDirectory(mockDataOptions.outputPath), - // criticalOptions: { - // height: 100 - // } - // }); - // - // console.log(result); - }); -});