added config test case for optimization.minimizer

This commit is contained in:
Steven Hargrove 2018-12-29 06:32:47 -05:00
parent d8ab512c34
commit 6240cf61f4
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
it("should compile", () => {})

View File

@ -0,0 +1,18 @@
const Compiler = require('../../../../lib/Compiler');
module.exports = {
optimization: {
minimize: true,
minimizer: [
{
apply(compiler) {
expect(compiler).toBeInstanceOf(Compiler);
},
},
function(compiler) {
expect(compiler).toBe(this);
expect(compiler).toBeInstanceOf(Compiler);
}
],
},
};