Skip to content

Commit

Permalink
tests: Expect package-locks
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat authored and iarna committed May 26, 2017
1 parent 6e3f417 commit 90d4c2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/tap/add-remote-git-shrinkwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ test('shrinkwrap gets correct _from and _resolved (#7121)', function (t) {
function (er, code, stdout, stderr) {
t.ifError(er, 'npm shrinkwrapped without errors')
t.is(code, 0, '`npm shrinkwrap` exited ok')
t.equal(stdout.trim(), 'wrote npm-shrinkwrap.json')
t.equal(stderr.trim(), '', 'no error output on successful shrinkwrap')

var shrinkwrap = require(resolve(pkg, 'npm-shrinkwrap.json'))
Expand Down
7 changes: 5 additions & 2 deletions test/tap/files-and-ignores.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ test('certain files ignored unconditionally', function (t) {
'.foo.swp',
'.DS_Store',
'._ohno',
'foo.orig'
'foo.orig',
'package-lock.json'
]
}),
'.git': Dir({foo: File('')}),
Expand All @@ -423,7 +424,8 @@ test('certain files ignored unconditionally', function (t) {
'.DS_Store': Dir({foo: File('')}),
'._ohno': File(''),
'._ohnoes': Dir({noes: File('')}),
'foo.orig': File('')
'foo.orig': File(''),
'package-lock.json': File('')
})
)
withFixture(t, fixture, function (done) {
Expand All @@ -443,6 +445,7 @@ test('certain files ignored unconditionally', function (t) {
t.notOk(fileExists('._ohno'), '._ohno not included')
t.notOk(fileExists('._ohnoes'), '._ohnoes not included')
t.notOk(fileExists('foo.orig'), 'foo.orig not included')
t.notOk(fileExists('package-lock.json'), 'package-lock.json not included')
done()
})
})
Expand Down

0 comments on commit 90d4c2a

Please sign in to comment.