Skip to content

Commit 4115793

Browse files
committed
fixed test and removed output
1 parent 6d484e8 commit 4115793

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

lib/buildDeps.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ function removeOneChunk(depTree, force) {
780780
best = [value, chunkA.id, chunkB.id];
781781
});
782782
});
783-
console.dir(best);
784783
if(!best) return false;
785784
if(force || best[0] > 0) {
786785
var chunk = depTree.chunks[best[1]];

test/buildDeps.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ describe("buildDeps", function() {
131131
var depTree;
132132
before(function(done) {
133133
buildDeps(path.join(__dirname, "fixtures"), "./main4.js", {
134-
maxChunks: 5,
135-
template: require("../templates/node")
134+
maxChunks: 5
136135
}, function(err, tree) {
137136
if(err) return done(err);
138137
should.not.exist(err);
@@ -143,8 +142,7 @@ describe("buildDeps", function() {
143142
});
144143

145144
it("should have 5 chunks", function() {
146-
console.dir(depTree.chunks);
147-
Object.keys(depTree.chunkCount).length.should.be.eql(5);
145+
depTree.chunkCount.should.be.eql(5);
148146
});
149147

150148
});

0 commit comments

Comments
 (0)