mirror of https://github.com/webpack/webpack.git
fixed test and removed output
This commit is contained in:
parent
6d484e80db
commit
4115793836
|
|
@ -780,7 +780,6 @@ function removeOneChunk(depTree, force) {
|
|||
best = [value, chunkA.id, chunkB.id];
|
||||
});
|
||||
});
|
||||
console.dir(best);
|
||||
if(!best) return false;
|
||||
if(force || best[0] > 0) {
|
||||
var chunk = depTree.chunks[best[1]];
|
||||
|
|
|
|||
|
|
@ -131,8 +131,7 @@ describe("buildDeps", function() {
|
|||
var depTree;
|
||||
before(function(done) {
|
||||
buildDeps(path.join(__dirname, "fixtures"), "./main4.js", {
|
||||
maxChunks: 5,
|
||||
template: require("../templates/node")
|
||||
maxChunks: 5
|
||||
}, function(err, tree) {
|
||||
if(err) return done(err);
|
||||
should.not.exist(err);
|
||||
|
|
@ -143,8 +142,7 @@ describe("buildDeps", function() {
|
|||
});
|
||||
|
||||
it("should have 5 chunks", function() {
|
||||
console.dir(depTree.chunks);
|
||||
Object.keys(depTree.chunkCount).length.should.be.eql(5);
|
||||
depTree.chunkCount.should.be.eql(5);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue