From 90d4c2a054ba86b89d1e7cd6fe540a21a280f5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Tue, 2 May 2017 23:07:45 -0700 Subject: [PATCH] tests: Expect package-locks --- test/tap/add-remote-git-shrinkwrap.js | 1 - test/tap/files-and-ignores.js | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/tap/add-remote-git-shrinkwrap.js b/test/tap/add-remote-git-shrinkwrap.js index e63bf3ee9bac8..8bd53cb5e091f 100644 --- a/test/tap/add-remote-git-shrinkwrap.js +++ b/test/tap/add-remote-git-shrinkwrap.js @@ -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')) diff --git a/test/tap/files-and-ignores.js b/test/tap/files-and-ignores.js index 88d9d12922b4e..d86b17acfa99a 100644 --- a/test/tap/files-and-ignores.js +++ b/test/tap/files-and-ignores.js @@ -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('')}), @@ -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) { @@ -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() }) })