Skip to content

Commit 8bdcfea

Browse files
author
Barak Igal
committed
use imported webpack in api test
1 parent 8be876f commit 8bdcfea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/api.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import webpack from 'webpack';
2+
13
import MiniCssExtractPlugin from '../src';
24

3-
import { getCompiler } from './helpers'
5+
46

57
describe('API', () => {
68
it('should return the same CssModule when same webpack instance provided', () => {
7-
const { webpack } = getCompiler('');
89
expect(MiniCssExtractPlugin.getCssModule(webpack)).toEqual(MiniCssExtractPlugin.getCssModule(webpack));
910
});
1011
});

0 commit comments

Comments
 (0)