From 6bd341a0e0ed49ede487d3735e133f9a413d6c3c Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 17 Dec 2019 18:59:32 +0300 Subject: [PATCH] refactor: cjs --- test/helpers/getCompiler.js | 2 +- test/loader.test.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 12622781..0ff43e42 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -20,7 +20,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../../src'), + loader: path.resolve(__dirname, '../../src/cjs.js'), options: loaderOptions || {}, }, loaderOptions && diff --git a/test/loader.test.js b/test/loader.test.js index ccac85a2..a19aba17 100644 --- a/test/loader.test.js +++ b/test/loader.test.js @@ -65,7 +65,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -147,7 +147,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -188,7 +188,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -225,7 +225,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag' @@ -262,7 +262,7 @@ describe('loader', () => { test: /\.css$/i, use: [ { - loader: path.resolve(__dirname, '../src'), + loader: path.resolve(__dirname, '../src/cjs.js'), options: { injectType }, }, injectType === 'linkTag'