Skip to content

Commit

Permalink
test: Fix unit mock issue in remove-obsolete-dep
Browse files Browse the repository at this point in the history
We now test extraneousness which means recursively walking `requiredBy`
which won't work if one of them is not an object.
  • Loading branch information
iarna committed Jul 11, 2017
1 parent 0bdcb94 commit a6bb15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tap/unit-deps-removeObsoleteDep.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test('removeObsoleteDep', function (t) {
removeObsoleteDep(test2)
t.is(child2.removed, true, 'required by no other modules, removing')

var child3 = {requiredBy: ['NOTEMPTY']}
var child3 = {requiredBy: [{isTop: true}]}
var test3 = {
requires: [ child3 ]
}
Expand Down

0 comments on commit a6bb15f

Please sign in to comment.