summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/ls-production-and-dev.js
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2016-03-29 23:30:51 -0700
committerMyles Borins <mborins@us.ibm.com>2016-04-01 14:47:39 -0700
commit0928584444ac6edf1ead0b93c9d05b1124183702 (patch)
treef64c5646b8e2817009e7afe97c2670c73d38a7eb /deps/npm/test/tap/ls-production-and-dev.js
parent39de601e1c3eda92eb2e37eca4e6aa960f206f39 (diff)
downloadnode-new-0928584444ac6edf1ead0b93c9d05b1124183702.tar.gz
deps: upgrade npm to 3.8.3
PR-URL: https://github.com/npm/node/pull/6 Reviewed-By: Evan Lucas <evanlucas@me.com>
Diffstat (limited to 'deps/npm/test/tap/ls-production-and-dev.js')
-rw-r--r--deps/npm/test/tap/ls-production-and-dev.js26
1 files changed, 24 insertions, 2 deletions
diff --git a/deps/npm/test/tap/ls-production-and-dev.js b/deps/npm/test/tap/ls-production-and-dev.js
index e9bae3de79..80d67ea5e5 100644
--- a/deps/npm/test/tap/ls-production-and-dev.js
+++ b/deps/npm/test/tap/ls-production-and-dev.js
@@ -17,10 +17,12 @@ var json = {
name: 'ls-env',
version: '0.0.0',
dependencies: {
- 'test-package-with-one-dep': '0.0.0'
+ 'test-package-with-one-dep': '0.0.0',
+ 'test-repo-url-ssh': '0.0.1'
},
devDependencies: {
- 'test-package-with-one-dep': '0.0.0'
+ 'test-package-with-one-dep': '0.0.0',
+ 'test-repo-url-https': '0.0.1'
}
}
@@ -57,6 +59,16 @@ test('npm ls --dev', function (t) {
/test-package-with-one-dep@0\.0\.0/,
'output contains test-package-with-one-dep@0.0.0'
)
+ t.has(
+ stdout,
+ /test-repo-url-https@0\.0\.1/,
+ 'output contains test-repo-url-https@0.0.1'
+ )
+ t.doesNotHave(
+ stdout,
+ /test-repo-url-ssh@0\.0\.1/,
+ 'output does NOT contain test-repo-url-ssh@0.0.1'
+ )
t.end()
})
})
@@ -96,6 +108,16 @@ test('npm ls --production', function (t) {
/test-package-with-one-dep@0\.0\.0/,
'output contains test-package-with-one-dep@0.0.0'
)
+ t.has(
+ stdout,
+ /test-repo-url-ssh@0\.0\.1/,
+ 'output contains test-repo-url-ssh@0.0.1'
+ )
+ t.doesNotHave(
+ stdout,
+ /test-repo-url-https@0\.0\.1/,
+ 'output does NOT contain test-repo-url-https@0.0.1'
+ )
t.end()
})
})