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-06-08 02:20:04 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-06-08 03:40:22 +0300
commit800cb2b4e2d0bd00b5c9082a896f2110e907eb0b (patch)
treef866da8594a70838bb0849e144a8e798d0185923 /test
parentd2969c80e4178faebf0f7c4cab6eb610dd953cc6 (diff)
shrinkwrap: lean on from field for better forward-compat (#17076)
PR-URL: https://github.com/npm/npm/pull/17076 Credit: @zkat Reviewed-By: @iarna
Diffstat (limited to 'test')
-rw-r--r--test/tap/shrinkwrap-nested.js6
-rw-r--r--test/tap/shrinkwrap-optional-platform.js2
-rw-r--r--test/tap/shrinkwrap-scoped-auth.js1
-rw-r--r--test/tap/shrinkwrap-version-match.js2
4 files changed, 0 insertions, 11 deletions
diff --git a/test/tap/shrinkwrap-nested.js b/test/tap/shrinkwrap-nested.js
index d94e5ce22..44d0cb0b2 100644
--- a/test/tap/shrinkwrap-nested.js
+++ b/test/tap/shrinkwrap-nested.js
@@ -25,12 +25,10 @@ var fixture = new Tacks(Dir({
dependencies: {
modA: {
version: '1.0.0',
- from: 'modA',
resolved: 'file://' + modAtgz
},
modB: {
version: '1.0.0',
- from: 'modB@1',
resolved: 'file://' + modB1tgz
}
}
@@ -74,22 +72,18 @@ var newShrinkwrap = new Tacks(Dir({
dependencies: {
modA: {
version: '1.0.0',
- from: 'modA',
resolved: 'file://' + modAtgz
},
modB: {
version: '1.0.0',
- from: 'modB@1',
resolved: 'file://' + modB1tgz
},
modC: {
version: '1.0.0',
- from: 'modC',
resolved: 'file://' + modCtgz,
dependencies: {
modB: {
version: '1.0.0',
- from: 'modB@1',
resolved: 'file://' + modB1tgz
}
}
diff --git a/test/tap/shrinkwrap-optional-platform.js b/test/tap/shrinkwrap-optional-platform.js
index 4dced0253..50a170686 100644
--- a/test/tap/shrinkwrap-optional-platform.js
+++ b/test/tap/shrinkwrap-optional-platform.js
@@ -54,13 +54,11 @@ var fixture = new Tacks(Dir({
dependencies: {
mod1: {
version: '1.0.0',
- from: 'mod1',
resolved: 'file:mod1',
optional: true
},
mod2: {
version: '1.0.0',
- from: 'mod2',
resolved: 'file:mod2',
optional: true
}
diff --git a/test/tap/shrinkwrap-scoped-auth.js b/test/tap/shrinkwrap-scoped-auth.js
index bd884c00b..1b000f938 100644
--- a/test/tap/shrinkwrap-scoped-auth.js
+++ b/test/tap/shrinkwrap-scoped-auth.js
@@ -86,7 +86,6 @@ var shrinkwrap = {
dependencies: {
'@scoped/underscore': {
resolved: tarballURL,
- from: '>=1.3.1 <2',
version: '1.3.1'
}
}
diff --git a/test/tap/shrinkwrap-version-match.js b/test/tap/shrinkwrap-version-match.js
index bdcff2e4b..aaa0dd6dd 100644
--- a/test/tap/shrinkwrap-version-match.js
+++ b/test/tap/shrinkwrap-version-match.js
@@ -30,12 +30,10 @@ var fixture = new Tacks(Dir({
dependencies: {
modA: {
version: '1.0.0',
- from: 'modA',
resolved: 'file://' + modAdir
},
modB: {
version: '1.0.0',
- from: 'modB@1',
resolved: 'file://' + modB1dir
}
}