Skip to content

Commit

Permalink
test: don't include disabled packages in total count
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Feb 9, 2017
1 parent 6b8235a commit bffcea3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions test/clone.js
Expand Up @@ -44,15 +44,10 @@ if (argv.disabled) {
testPackages = disabledPackages
} else {
test('Disabled Packages', function (t) {
if (disabledPackages.length === 0) {
t.pass('no disabled packages')
t.end()
} else {
t.plan(disabledPackages.length)
disabledPackages.forEach(function (pkg) {
t.pass('DISABLED: ' + pkg.name + ': ' + pkg.disable + ' (' + pkg.repo + ')')
})
}
disabledPackages.forEach(function (pkg) {
console.log('DISABLED: ' + pkg.name + ': ' + pkg.disable + ' (' + pkg.repo + ')')
})
t.end()
})
}

Expand Down

0 comments on commit bffcea3

Please sign in to comment.