Skip to content

Commit

Permalink
Make tests for LimitChunkCountPlugin take objects
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyt committed Jun 1, 2015
1 parent 0c663ae commit d0611d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/Integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe("Integration", function() {
alias: { should: require.resolve("should") }
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin(1),
new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}),
new webpack.DefinePlugin({
"typeof CONST_TYPEOF": JSON.stringify("typeof"),
CONST_TRUE: true,
Expand Down
2 changes: 1 addition & 1 deletion test/NodeTemplatePlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe("NodeTemplatePlugin", function() {
},
entry: "./entry",
plugins: [
new webpack.optimize.LimitChunkCountPlugin(1),
new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}),
new webpack.optimize.UglifyJsPlugin()
]
}, function(err, stats) {
Expand Down
3 changes: 2 additions & 1 deletion test/browsertest/library2config.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module.exports =
alias:
should: require.resolve "should"
plugins: [
new webpack.optimize.LimitChunkCountPlugin 2
new webpack.optimize.LimitChunkCountPlugin
maxChunks: 2
new webpack.DefinePlugin
"typeof CONST_TYPEOF": JSON.stringify("typeof"),
CONST_UNDEFINED: undefined,
Expand Down

0 comments on commit d0611d0

Please sign in to comment.