Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-05-03 09:07:45 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:41:39 +0300
commit90d4c2a054ba86b89d1e7cd6fe540a21a280f5d4 (patch)
tree64919d977f6d5b571ee473ec394b19f4c312922a /test
parent6e3f417b743ed59a9a7732a3df83a6da83f52aa1 (diff)
tests: Expect package-locks
Diffstat (limited to 'test')
-rw-r--r--test/tap/add-remote-git-shrinkwrap.js1
-rw-r--r--test/tap/files-and-ignores.js7
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 e63bf3ee9..8bd53cb5e 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 88d9d1292..d86b17acf 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()
})
})