Skip to content

Commit 9c356e6

Browse files
author
Barak Igal
committed
Add test for getCssModule
1 parent 6c8ec12 commit 9c356e6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/api.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import MiniCssExtractPlugin from '../src';
2+
3+
import { getCompiler } from './helpers'
4+
5+
describe('API', () => {
6+
it('should return the same CssModule when same webpack instance provided', () => {
7+
const { webpack } = getCompiler('');
8+
expect(MiniCssExtractPlugin.getCssModule(webpack)).toEqual(MiniCssExtractPlugin.getCssModule(webpack));
9+
});
10+
});

0 commit comments

Comments
 (0)