Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
tests: Make more lenient
Browse files Browse the repository at this point in the history
PR-URL: #17508
Credit: @iarna
Reviewed-By: @zkat
  • Loading branch information
iarna authored and zkat committed Jul 5, 2017
1 parent ab681e5 commit db8cfbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/tap/shrinkwrap-local-dependency.js
Expand Up @@ -85,7 +85,7 @@ test('shrinkwrap uses resolved with file: on local deps', function (t) {
t.comment(stderr.trim())
t.equal(code, 0, 'npm exited normally')
var data = fs.readFileSync(path.join(testdir, 'npm-shrinkwrap.json'), { encoding: 'utf8' })
t.deepEqual(
t.like(
JSON.parse(data).dependencies,
shrinkwrap.dependencies,
'shrinkwrap looks correct'
Expand Down
2 changes: 1 addition & 1 deletion test/tap/shrinkwrap-shared-dev-dependency.js
Expand Up @@ -67,7 +67,7 @@ test("shrinkwrap doesn't strip out the shared dependency", function (t) {
}).spread((code) => {
t.is(code, 0, 'shrinkwrap')
var results = JSON.parse(fs.readFileSync(`${pkg}/npm-shrinkwrap.json`))
t.deepEqual(results.dependencies, desired.dependencies)
t.like(results.dependencies, desired.dependencies)
t.end()
})
})
Expand Down

0 comments on commit db8cfbb

Please sign in to comment.