Skip to content

Commit

Permalink
test(binCases/errors): throw WebpackOptionsValidationError for inva…
Browse files Browse the repository at this point in the history
…lid configs
  • Loading branch information
michael-ciniawsky committed Nov 8, 2017
1 parent a88fdc7 commit 68db551
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/binCases/errors/validation/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

module.exports = function(code, stdout, stderr) {
stderr[0].should.containEql("Invalid configuration object");
};
3 changes: 3 additions & 0 deletions test/binCases/errors/validation/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
postcss: () => {}
};

0 comments on commit 68db551

Please sign in to comment.