Skip to content

Commit

Permalink
refactor: cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 17, 2019
1 parent b9459e5 commit 6bd341a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/helpers/getCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down
10 changes: 5 additions & 5 deletions test/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 6bd341a

Please sign in to comment.