Skip to content

Commit b6c282f

Browse files
committed
fix unit test
1 parent b5b6506 commit b6c282f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/RemovedPlugins.unittest.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ require("should");
44

55
describe("removed plugin errors", () => {
66
it("should error when accessing removed plugins", () => {
7-
(() => webpack.optimize.UglifyJsPlugin).should.throw(
8-
RemovedPluginError,
9-
/webpack\.optimize\.UglifyJsPlugin has been removed, please use config\.optimization\.minimize instead\./
10-
);
7+
(() => webpack.optimize.UglifyJsPlugin).should.throw(RemovedPluginError, {
8+
message: /webpack\.optimize\.UglifyJsPlugin has been removed, please use config\.optimization\.minimize instead\./
9+
});
1110

1211
(() => webpack.optimize.CommonsChunkPlugin).should.throw(
1312
RemovedPluginError,
14-
/webpack\.optimize\.CommonsChunkPlugin has been removed, please use config\.optimization\.splitChunks instead\./
13+
{
14+
message: /webpack\.optimize\.CommonsChunkPlugin has been removed, please use config\.optimization\.splitChunks instead\./
15+
}
1516
);
1617
});
1718
});

0 commit comments

Comments
 (0)