diff options
author | Rebecca Turner <me@re-becca.org> | 2018-02-15 04:11:54 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2018-02-20 06:05:46 +0300 |
commit | 857dab03f2d58586b45d41d3e5af0fb2d4e824d0 (patch) | |
tree | 14e2ea9b7e1888ac2fb1f1f200fd0f87d7cc0a78 /test | |
parent | 9936cf54d2c5bb77fde94f3621c35e3fac938bb1 (diff) |
has-modern-meta: git deps do not need shasum or integrity
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/override-bundled.js | 4 | ||||
-rw-r--r-- | test/tap/tagged-version-matching.js | 30 |
2 files changed, 6 insertions, 28 deletions
diff --git a/test/tap/override-bundled.js b/test/tap/override-bundled.js index cf6049a12..6cbab620d 100644 --- a/test/tap/override-bundled.js +++ b/test/tap/override-bundled.js @@ -65,6 +65,8 @@ var bundlekeepjson = { _requested: { rawSpec: bundlekeeptgz }, + _resolved: bundlekeeptgz, + _shasum: 'baadf00d', files: ['OLD', 'NEW'] } @@ -77,6 +79,8 @@ var bundledeepjson = { _requested: { rawSpec: bundledeeptgz }, + _resolved: bundlekeeptgz, + _shasum: 'deadbeef', files: ['OLD', 'NEW'] } diff --git a/test/tap/tagged-version-matching.js b/test/tap/tagged-version-matching.js index 9d3f5f38e..a04e74914 100644 --- a/test/tap/tagged-version-matching.js +++ b/test/tap/tagged-version-matching.js @@ -46,24 +46,6 @@ var fixture = new Tacks(Dir({ 'package.json': File({ _from: 'npm/example-gitdep', _id: 'gitdep@1.0.0', - _requested: { - raw: 'gitdep@git://github.com/npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - scope: null, - escapedName: 'gitdep', - name: 'gitdep', - rawSpec: 'git://github.com/npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - spec: 'git://github.com/npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - type: 'hosted', - hosted: { - type: 'github', - ssh: 'git@github.com:npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - sshUrl: 'git+ssh://git@github.com/npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - httpsUrl: 'git+https://github.com/npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - gitUrl: 'git://github.com/npm/example-gitdep.git#da39a3ee5e6b4b0d3255bfef95601890afd80709', - shortcut: 'github:npm/example-gitdep#da39a3ee5e6b4b0d3255bfef95601890afd80709', - directUrl: 'https://raw.githubusercontent.com/npm/example-gitdep/da39a3ee5e6b4b0d3255bfef95601890afd80709/package.json' - } - }, _resolved: 'github:npm/example-gitdep#da39a3ee5e6b4b0d3255bfef95601890afd80709', name: 'gitdep', version: '1.0.0' @@ -74,15 +56,7 @@ var fixture = new Tacks(Dir({ _from: 'tagdep@latest', _id: 'tagdep@1.0.0', _integrity: 'sha1-0EJSKmsdk39848LlrRg/hZQo2B8=', - _requested: { - raw: 'tagdep@https://registry.example.com/tagdep/-/tagdep-1.0.0.tgz', - scope: null, - escapedName: 'tagdep', - name: 'tagdep', - rawSpec: 'https://registry.example.com/tagdep/-/tagdep-1.0.0.tgz', - spec: 'https://registry.example.com/tagdep/-/tagdep-1.0.0.tgz', - type: 'remote' - }, + _resolved: 'https://registry.example.com/tagdep/-/tagdep-1.0.0.tgz', name: 'tagdep', version: '1.0.0' }) @@ -102,7 +76,7 @@ var fixture = new Tacks(Dir({ example: { version: 'file:example', requires: { - tagdep: '1.0.0', + tagdep: '^1.0.0', gitdep: 'github:npm/example-gitdep#da39a3ee5e6b4b0d3255bfef95601890afd80709' } }, |