Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
fix(tests): plugin tesst
Browse files Browse the repository at this point in the history
  • Loading branch information
kisenka committed Nov 22, 2017
1 parent f965a24 commit 1f8712d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lib/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ describe('plugin', () => {
describe('prepare()', () => {
it('should properly add custom loader rules', () => {
const compiler = createCompiler({ entry: './test-banner' })._compiler;
Plugin.addLoaderForRuntime(compiler);
const plugin = new Plugin();
plugin.addLoaderForRuntime(compiler);
const [rule] = compiler.options.module.rules;
rule.loader.should.be.equal(LOADER_PATH);
rule.test.should.be.equal(defaultConfig.runtimeModule);
Expand Down

0 comments on commit 1f8712d

Please sign in to comment.