Skip to content

Commit bed57b3

Browse files
committed
minor #131 Remove duplicate addPlugin test case (Lyrkan)
This PR was merged into the master branch. Discussion ---------- Remove duplicate addPlugin test case This PR removes a duplicate test case in `WebpackConfig.js`: * [first instance](https://github.com/symfony/webpack-encore/blob/v0.12.0/test/WebpackConfig.js#L335-L346) * [second instance](https://github.com/symfony/webpack-encore/blob/v0.12.0/test/WebpackConfig.js#L368-L379) Commits ------- 1ca7dff Remove duplicate addPlugin test case
2 parents c477fb6 + 1ca7dff commit bed57b3

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

test/WebpackConfig.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -375,19 +375,6 @@ describe('WebpackConfig object', () => {
375375
});
376376
});
377377

378-
describe('addPlugin', () => {
379-
it('extends the current registered plugins', () => {
380-
const config = createConfig();
381-
const nbOfPlugins = config.plugins.length;
382-
383-
expect(nbOfPlugins).to.equal(0);
384-
385-
config.addPlugin(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/));
386-
387-
expect(config.plugins.length).to.equal(1);
388-
});
389-
});
390-
391378
describe('enableVueLoader', () => {
392379
it('Call with no config', () => {
393380
const config = createConfig();

0 commit comments

Comments
 (0)