Skip to content

Commit

Permalink
redescribed assertion, removed dupe assertion, added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzy committed Oct 14, 2021
1 parent 1741bed commit cec00ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ t.test('npm init workspces with root', t => {
const pkg = require(resolve(npm.localPrefix, 'package.json'))
t.equal(pkg.version, '1.0.0')
t.equal(pkg.license, 'ISC')
t.matchSnapshot(npm._mockOutputs, 'should print helper info')
t.matchSnapshot(npm._mockOutputs, 'does not print helper info')
t.end()
})
})
15 changes: 3 additions & 12 deletions test/lib/outdated.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,18 +572,9 @@ t.test('workspaces', async t => {
if (err)
rej(err)

t.matchSnapshot(logs, 'should display only root outdated when ws disabled')
flatOptions.workspacesEnabled = true
res()
})
})

await new Promise((res, rej) => {
flatOptions.workspacesEnabled = false
outdated(testDir, {}).exec([], err => {
if (err)
rej(err)

// TODO: This should display dog, but doesn't because arborist filters
// workspace deps even if they're also root deps
// This will be fixed in a future arborist version
t.matchSnapshot(logs, 'should display only root outdated when ws disabled')
flatOptions.workspacesEnabled = true
res()
Expand Down

0 comments on commit cec00ca

Please sign in to comment.