Skip to content

Commit d0611d0

Browse files
committed
Make tests for LimitChunkCountPlugin take objects
1 parent 0c663ae commit d0611d0

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

test/Integration.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("Integration", function() {
5252
alias: { should: require.resolve("should") }
5353
},
5454
plugins: [
55-
new webpack.optimize.LimitChunkCountPlugin(1),
55+
new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}),
5656
new webpack.DefinePlugin({
5757
"typeof CONST_TYPEOF": JSON.stringify("typeof"),
5858
CONST_TRUE: true,

test/NodeTemplatePlugin.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe("NodeTemplatePlugin", function() {
5050
},
5151
entry: "./entry",
5252
plugins: [
53-
new webpack.optimize.LimitChunkCountPlugin(1),
53+
new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}),
5454
new webpack.optimize.UglifyJsPlugin()
5555
]
5656
}, function(err, stats) {

test/browsertest/library2config.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module.exports =
1414
alias:
1515
should: require.resolve "should"
1616
plugins: [
17-
new webpack.optimize.LimitChunkCountPlugin 2
17+
new webpack.optimize.LimitChunkCountPlugin
18+
maxChunks: 2
1819
new webpack.DefinePlugin
1920
"typeof CONST_TYPEOF": JSON.stringify("typeof"),
2021
CONST_UNDEFINED: undefined,

0 commit comments

Comments
 (0)