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
diff options
context:
space:
mode:
Diffstat (limited to 'smoke-tests/tap-snapshots/test/index.js.test.cjs')
-rw-r--r--smoke-tests/tap-snapshots/test/index.js.test.cjs702
1 files changed, 223 insertions, 479 deletions
diff --git a/smoke-tests/tap-snapshots/test/index.js.test.cjs b/smoke-tests/tap-snapshots/test/index.js.test.cjs
index 9f539bf8a..904b09b05 100644
--- a/smoke-tests/tap-snapshots/test/index.js.test.cjs
+++ b/smoke-tests/tap-snapshots/test/index.js.test.cjs
@@ -5,7 +5,7 @@
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
-exports[`test/index.js TAP npm (no args) > should have expected no args output 1`] = `
+exports[`test/index.js TAP basic npm (no args) > should have expected no args output 1`] = `
npm <command>
Usage:
@@ -32,7 +32,7 @@ All commands:
unstar, update, version, view, whoami
Specify configs in the ini-formatted file:
- {CWD}/smoke-tests/test/tap-testdir-index/.npmrc
+ {CWD}/{TESTDIR}/project/.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
@@ -41,7 +41,7 @@ Configuration fields: npm help 7 config
npm {CWD}
`
-exports[`test/index.js TAP npm ci > should throw mismatch deps in lock file error 1`] = `
+exports[`test/index.js TAP basic npm ci > should throw mismatch deps in lock file error 1`] = `
npm ERR! code EUSAGE
npm ERR!
npm ERR! \`npm ci\` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with \`npm install\` before continuing.
@@ -71,274 +71,43 @@ npm ERR! A complete log of this run can be found in:
`
-exports[`test/index.js TAP npm diff > should have expected diff output 1`] = `
+exports[`test/index.js TAP basic npm diff > should have expected diff output 1`] = `
+diff --git a/index.js b/index.js
+index v1.0.4..v1.1.1 100644
+--- a/index.js
++++ b/index.js
+@@ -1,1 +1,1 @@
+-module.exports = "1.0.4"
+/ No newline at end of file
++module.exports = "1.1.1"
+/ No newline at end of file
diff --git a/package.json b/package.json
index v1.0.4..v1.1.1 100644
--- a/package.json
+++ b/package.json
-@@ -1,15 +1,21 @@
+@@ -1,4 +1,4 @@
{
"name": "abbrev",
-- "version": "1.0.4",
-+ "version": "1.1.1",
- "description": "Like ruby's abbrev module, but in js",
- "author": "Isaac Z. Schlueter <i@izs.me>",
-- "main": "./lib/abbrev.js",
-+ "main": "abbrev.js",
- "scripts": {
-- "test": "node lib/abbrev.js"
-+ "test": "tap test.js --100",
-+ "preversion": "npm test",
-+ "postversion": "npm publish",
-+ "postpublish": "git push origin --all; git push origin --tags"
- },
- "repository": "http://github.com/isaacs/abbrev-js",
-- "license": {
-- "type": "MIT",
-- "url": "https://github.com/isaacs/abbrev-js/raw/master/LICENSE"
-- }
-+ "license": "ISC",
-+ "devDependencies": {
-+ "tap": "^10.1"
-+ },
-+ "files": [
-+ "abbrev.js"
-+ ]
+- "version": "1.0.4"
++ "version": "1.1.1"
}
-diff --git a/LICENSE b/LICENSE
-index v1.0.4..v1.1.1 100644
---- a/LICENSE
-+++ b/LICENSE
-@@ -1,4 +1,27 @@
--Copyright 2009, 2010, 2011 Isaac Z. Schlueter.
-+This software is dual-licensed under the ISC and MIT licenses.
-+You may use this software under EITHER of the following licenses.
-+
-+----------
-+
-+The ISC License
-+
-+Copyright (c) Isaac Z. Schlueter and Contributors
-+
-+Permission to use, copy, modify, and/or distribute this software for any
-+purpose with or without fee is hereby granted, provided that the above
-+copyright notice and this permission notice appear in all copies.
-+
-+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-+
-+----------
-+
-+Copyright Isaac Z. Schlueter and Contributors
- All rights reserved.
-
- Permission is hereby granted, free of charge, to any person
-diff --git a/lib/abbrev.js b/lib/abbrev.js
-deleted file mode 100644
-index v1.0.4..v1.1.1
---- a/lib/abbrev.js
-+++ b/lib/abbrev.js
-@@ -1,111 +0,0 @@
--
--module.exports = exports = abbrev.abbrev = abbrev
--
--abbrev.monkeyPatch = monkeyPatch
--
--function monkeyPatch () {
-- Object.defineProperty(Array.prototype, 'abbrev', {
-- value: function () { return abbrev(this) },
-- enumerable: false, configurable: true, writable: true
-- })
--
-- Object.defineProperty(Object.prototype, 'abbrev', {
-- value: function () { return abbrev(Object.keys(this)) },
-- enumerable: false, configurable: true, writable: true
-- })
--}
--
--function abbrev (list) {
-- if (arguments.length !== 1 || !Array.isArray(list)) {
-- list = Array.prototype.slice.call(arguments, 0)
-- }
-- for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
-- args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
-- }
--
-- // sort them lexicographically, so that they're next to their nearest kin
-- args = args.sort(lexSort)
--
-- // walk through each, seeing how much it has in common with the next and previous
-- var abbrevs = {}
-- , prev = ""
-- for (var i = 0, l = args.length ; i < l ; i ++) {
-- var current = args[i]
-- , next = args[i + 1] || ""
-- , nextMatches = true
-- , prevMatches = true
-- if (current === next) continue
-- for (var j = 0, cl = current.length ; j < cl ; j ++) {
-- var curChar = current.charAt(j)
-- nextMatches = nextMatches && curChar === next.charAt(j)
-- prevMatches = prevMatches && curChar === prev.charAt(j)
-- if (!nextMatches && !prevMatches) {
-- j ++
-- break
-- }
-- }
-- prev = current
-- if (j === cl) {
-- abbrevs[current] = current
-- continue
-- }
-- for (var a = current.substr(0, j) ; j <= cl ; j ++) {
-- abbrevs[a] = current
-- a += current.charAt(j)
-- }
-- }
-- return abbrevs
--}
--
--function lexSort (a, b) {
-- return a === b ? 0 : a > b ? 1 : -1
--}
--
--
--// tests
--if (module === require.main) {
--
--var assert = require("assert")
--var util = require("util")
--
--console.log("running tests")
--function test (list, expect) {
-- var actual = abbrev(list)
-- assert.deepEqual(actual, expect,
-- "abbrev("+util.inspect(list)+") === " + util.inspect(expect) + "/n"+
-- "actual: "+util.inspect(actual))
-- actual = abbrev.apply(exports, list)
-- assert.deepEqual(abbrev.apply(exports, list), expect,
-- "abbrev("+list.map(JSON.stringify).join(",")+") === " + util.inspect(expect) + "/n"+
-- "actual: "+util.inspect(actual))
--}
--
--test([ "ruby", "ruby", "rules", "rules", "rules" ],
--{ rub: 'ruby'
--, ruby: 'ruby'
--, rul: 'rules'
--, rule: 'rules'
--, rules: 'rules'
--})
--test(["fool", "foom", "pool", "pope"],
--{ fool: 'fool'
--, foom: 'foom'
--, poo: 'pool'
--, pool: 'pool'
--, pop: 'pope'
--, pope: 'pope'
--})
--test(["a", "ab", "abc", "abcd", "abcde", "acde"],
--{ a: 'a'
--, ab: 'ab'
--, abc: 'abc'
--, abcd: 'abcd'
--, abcde: 'abcde'
--, ac: 'acde'
--, acd: 'acde'
--, acde: 'acde'
--})
--
--console.log("pass")
--
--}
/ No newline at end of file
-diff --git a/abbrev.js b/abbrev.js
-new file mode 100644
-index v1.0.4..v1.1.1
---- a/abbrev.js
-+++ b/abbrev.js
-@@ -0,0 +1,61 @@
-+module.exports = exports = abbrev.abbrev = abbrev
-+
-+abbrev.monkeyPatch = monkeyPatch
-+
-+function monkeyPatch () {
-+ Object.defineProperty(Array.prototype, 'abbrev', {
-+ value: function () { return abbrev(this) },
-+ enumerable: false, configurable: true, writable: true
-+ })
-+
-+ Object.defineProperty(Object.prototype, 'abbrev', {
-+ value: function () { return abbrev(Object.keys(this)) },
-+ enumerable: false, configurable: true, writable: true
-+ })
-+}
-+
-+function abbrev (list) {
-+ if (arguments.length !== 1 || !Array.isArray(list)) {
-+ list = Array.prototype.slice.call(arguments, 0)
-+ }
-+ for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
-+ args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
-+ }
-+
-+ // sort them lexicographically, so that they're next to their nearest kin
-+ args = args.sort(lexSort)
-+
-+ // walk through each, seeing how much it has in common with the next and previous
-+ var abbrevs = {}
-+ , prev = ""
-+ for (var i = 0, l = args.length ; i < l ; i ++) {
-+ var current = args[i]
-+ , next = args[i + 1] || ""
-+ , nextMatches = true
-+ , prevMatches = true
-+ if (current === next) continue
-+ for (var j = 0, cl = current.length ; j < cl ; j ++) {
-+ var curChar = current.charAt(j)
-+ nextMatches = nextMatches && curChar === next.charAt(j)
-+ prevMatches = prevMatches && curChar === prev.charAt(j)
-+ if (!nextMatches && !prevMatches) {
-+ j ++
-+ break
-+ }
-+ }
-+ prev = current
-+ if (j === cl) {
-+ abbrevs[current] = current
-+ continue
-+ }
-+ for (var a = current.substr(0, j) ; j <= cl ; j ++) {
-+ abbrevs[a] = current
-+ a += current.charAt(j)
-+ }
-+ }
-+ return abbrevs
-+}
-+
-+function lexSort (a, b) {
-+ return a === b ? 0 : a > b ? 1 : -1
-+}
`
-exports[`test/index.js TAP npm explain > should have expected explain output 1`] = `
+exports[`test/index.js TAP basic npm explain > should have expected explain output 1`] = `
abbrev@1.0.4
node_modules/abbrev
abbrev@"^1.0.4" from the root project
`
-exports[`test/index.js TAP npm fund > should have expected fund output 1`] = `
+exports[`test/index.js TAP basic npm fund > should have expected fund output 1`] = `
project@1.0.0
-\`-- https://github.com/sponsors/isaacs
- \`-- promise-all-reject-late@1.0.1
+\`-- https://github.com/sponsors
+ \`-- promise-all-reject-late@5.0.0
`
-exports[`test/index.js TAP npm init > should have successful npm init result 1`] = `
-Wrote to {CWD}/smoke-tests/test/tap-testdir-index/project/package.json:
+exports[`test/index.js TAP basic npm init > should have successful npm init result 1`] = `
+Wrote to {CWD}/{TESTDIR}/project/package.json:
{
"name": "project",
@@ -354,194 +123,185 @@ Wrote to {CWD}/smoke-tests/test/tap-testdir-index/project/package.json:
}
`
-exports[`test/index.js TAP npm install dev dep > should have expected dev dep added lockfile result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm install dev dep > should have expected dev dep added lockfile result 1`] = `
+Object {
"lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
+ "name": "project",
+ "packages": Object {
+ "": Object {
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
+ "devDependencies": Object {
+ "promise-all-reject-late": "^5.0.0",
+ },
+ "license": "ISC",
"name": "project",
"version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- },
- "devDependencies": {
- "promise-all-reject-late": "^1.0.1"
- }
},
- "node_modules/abbrev": {
+ "node_modules/abbrev": Object {
+ "resolved": "http://smoke-test-registry.club/abbrev/-/abbrev-1.0.4.tgz",
"version": "1.0.4",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz",
- "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0="
},
- "node_modules/promise-all-reject-late": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz",
- "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==",
+ "node_modules/promise-all-reject-late": Object {
"dev": true,
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- }
- }
+ "funding": Object {
+ "url": "https://github.com/sponsors",
+ },
+ "resolved": "http://smoke-test-registry.club/promise-all-reject-late/-/promise-all-reject-late-5.0.0.tgz",
+ "version": "5.0.0",
+ },
+ },
+ "requires": true,
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm install dev dep > should have expected dev dep added package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm install dev dep > should have expected dev dep added package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo /"Error: no test specified/" && exit 1"
+ "devDependencies": Object {
+ "promise-all-reject-late": "^5.0.0",
},
- "keywords": [],
- "author": "",
+ "keywords": Array [],
"license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
+ "main": "index.js",
+ "name": "project",
+ "scripts": Object {
+ "test": "echo /"Error: no test specified/" && exit 1",
},
- "devDependencies": {
- "promise-all-reject-late": "^1.0.1"
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm install dev dep > should have expected dev dep added reify output 1`] = `
-added 1 package
+exports[`test/index.js TAP basic npm install dev dep > should have expected dev dep added reify output 1`] = `
+added 1 package in {TIME}
1 package is looking for funding
run \`npm fund\` for details
`
-exports[`test/index.js TAP npm install prodDep@version > should have expected install reify output 1`] = `
-added 1 package
+exports[`test/index.js TAP basic npm install prodDep@version > should have expected install reify output 1`] = `
+added 1 package in {TIME}
`
-exports[`test/index.js TAP npm install prodDep@version > should have expected lockfile result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm install prodDep@version > should have expected lockfile result 1`] = `
+Object {
"lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
+ "name": "project",
+ "packages": Object {
+ "": Object {
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
+ "license": "ISC",
"name": "project",
"version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- }
},
- "node_modules/abbrev": {
+ "node_modules/abbrev": Object {
+ "resolved": "http://smoke-test-registry.club/abbrev/-/abbrev-1.0.4.tgz",
"version": "1.0.4",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz",
- "integrity": "sha1-vVWuXkE7oXIu5Mq6H26hBBSlns0="
- }
- }
+ },
+ },
+ "requires": true,
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm install prodDep@version > should have expected package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm install prodDep@version > should have expected package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
+ "keywords": Array [],
+ "license": "ISC",
"main": "index.js",
- "scripts": {
- "test": "echo /"Error: no test specified/" && exit 1"
+ "name": "project",
+ "scripts": Object {
+ "test": "echo /"Error: no test specified/" && exit 1",
},
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm ls > should have expected ls output 1`] = `
-project@1.0.0 {CWD}/smoke-tests/test/tap-testdir-index/project
+exports[`test/index.js TAP basic npm ls > should have expected ls output 1`] = `
+project@1.0.0 {CWD}/{TESTDIR}/project
+-- abbrev@1.0.4
-\`-- promise-all-reject-late@1.0.1
+\`-- promise-all-reject-late@5.0.0
`
-exports[`test/index.js TAP npm outdated > should have expected outdated output 1`] = `
+exports[`test/index.js TAP basic npm outdated > should have expected outdated output 1`] = `
Package Current Wanted Latest Location Depended by
abbrev 1.0.4 1.1.1 1.1.1 node_modules/abbrev project
`
-exports[`test/index.js TAP npm pkg > should have expected npm pkg delete modified package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm pkg > should have expected npm pkg delete modified package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
+ "keywords": Array [],
+ "license": "ISC",
"main": "index.js",
- "scripts": {
+ "name": "project",
+ "scripts": Object {
+ "hello": "echo Hello",
"test": "echo /"Error: no test specified/" && exit 1",
- "hello": "echo Hello"
},
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm pkg > should have expected npm pkg set modified package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm pkg > should have expected npm pkg set modified package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
+ "keywords": Array [],
+ "license": "ISC",
"main": "index.js",
- "scripts": {
+ "name": "project",
+ "scripts": Object {
+ "hello": "echo Hello",
"test": "echo /"Error: no test specified/" && exit 1",
- "hello": "echo Hello"
},
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
+ "tap": Object {
+ "test-env": Array [
+ "LC_ALL=sk",
+ ],
},
- "tap": {
- "test-env": [
- "LC_ALL=sk"
- ]
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm pkg > should have expected pkg delete output 1`] = `
+exports[`test/index.js TAP basic npm pkg > should have expected pkg delete output 1`] = `
`
-exports[`test/index.js TAP npm pkg > should have expected pkg get output 1`] = `
+exports[`test/index.js TAP basic npm pkg > should have expected pkg get output 1`] = `
"ISC"
`
-exports[`test/index.js TAP npm pkg > should have expected pkg set output 1`] = `
+exports[`test/index.js TAP basic npm pkg > should have expected pkg set output 1`] = `
`
-exports[`test/index.js TAP npm pkg > should print package.json contents 1`] = `
+exports[`test/index.js TAP basic npm pkg > should print package.json contents 1`] = `
{
"name": "project",
"version": "1.0.0",
"description": "",
- "ma",
+ "main": "index.js",
"scripts": {
"test": "echo /"Error: no test specified/" && exit 1",
"hello": "echo Hello"
@@ -560,178 +320,162 @@ exports[`test/index.js TAP npm pkg > should print package.json contents 1`] = `
}
`
-exports[`test/index.js TAP npm pkg set scripts > should have expected script added package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm pkg set scripts > should have expected script added package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo /"Error: no test specified/" && exit 1",
- "hello": "echo Hello"
+ "devDependencies": Object {
+ "promise-all-reject-late": "^5.0.0",
},
- "keywords": [],
- "author": "",
+ "keywords": Array [],
"license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
+ "main": "index.js",
+ "name": "project",
+ "scripts": Object {
+ "hello": "echo Hello",
+ "test": "echo /"Error: no test specified/" && exit 1",
},
- "devDependencies": {
- "promise-all-reject-late": "^1.0.1"
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm pkg set scripts > should have expected set-script output 1`] = `
+exports[`test/index.js TAP basic npm pkg set scripts > should have expected set-script output 1`] = `
`
-exports[`test/index.js TAP npm prefix > should have expected prefix output 1`] = `
-{CWD}/smoke-tests/test/tap-testdir-index/project
+exports[`test/index.js TAP basic npm prefix > should have expected prefix output 1`] = `
+{CWD}/{TESTDIR}/project
`
-exports[`test/index.js TAP npm run-script > should have expected run-script output 1`] = `
+exports[`test/index.js TAP basic npm run-script > should have expected run-script output 1`] = `
> project@1.0.0 hello
> echo Hello
Hello
`
-exports[`test/index.js TAP npm uninstall > should have expected uninstall lockfile result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm uninstall > should have expected uninstall lockfile result 1`] = `
+Object {
"lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
+ "name": "project",
+ "packages": Object {
+ "": Object {
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
+ "license": "ISC",
"name": "project",
"version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- }
},
- "node_modules/abbrev": {
+ "node_modules/abbrev": Object {
+ "resolved": "http://smoke-test-registry.club/abbrev/-/abbrev-1.1.1.tgz",
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- }
- }
+ },
+ },
+ "requires": true,
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm uninstall > should have expected uninstall package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm uninstall > should have expected uninstall package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
+ "keywords": Array [],
+ "license": "ISC",
"main": "index.js",
- "scripts": {
+ "name": "project",
+ "scripts": Object {
+ "hello": "echo Hello",
"test": "echo /"Error: no test specified/" && exit 1",
- "hello": "echo Hello"
},
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm uninstall > should have expected uninstall reify output 1`] = `
-removed 1 package
+exports[`test/index.js TAP basic npm uninstall > should have expected uninstall reify output 1`] = `
+removed 1 package in {TIME}
`
-exports[`test/index.js TAP npm update dep > should have expected update lockfile result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm update dep > should have expected update lockfile result 1`] = `
+Object {
"lockfileVersion": 3,
- "requires": true,
- "packages": {
- "": {
+ "name": "project",
+ "packages": Object {
+ "": Object {
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
+ "devDependencies": Object {
+ "promise-all-reject-late": "^5.0.0",
+ },
+ "license": "ISC",
"name": "project",
"version": "1.0.0",
- "license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
- },
- "devDependencies": {
- "promise-all-reject-late": "^1.0.1"
- }
},
- "node_modules/abbrev": {
+ "node_modules/abbrev": Object {
+ "resolved": "http://smoke-test-registry.club/abbrev/-/abbrev-1.1.1.tgz",
"version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
},
- "node_modules/promise-all-reject-late": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz",
- "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==",
+ "node_modules/promise-all-reject-late": Object {
"dev": true,
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- }
- }
+ "funding": Object {
+ "url": "https://github.com/sponsors",
+ },
+ "resolved": "http://smoke-test-registry.club/promise-all-reject-late/-/promise-all-reject-late-5.0.0.tgz",
+ "version": "5.0.0",
+ },
+ },
+ "requires": true,
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm update dep > should have expected update package.json result 1`] = `
-{
- "name": "project",
- "version": "1.0.0",
+exports[`test/index.js TAP basic npm update dep > should have expected update package.json result 1`] = `
+Object {
+ "author": "",
+ "dependencies": Object {
+ "abbrev": "^1.0.4",
+ },
"description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo /"Error: no test specified/" && exit 1",
- "hello": "echo Hello"
+ "devDependencies": Object {
+ "promise-all-reject-late": "^5.0.0",
},
- "keywords": [],
- "author": "",
+ "keywords": Array [],
"license": "ISC",
- "dependencies": {
- "abbrev": "^1.0.4"
+ "main": "index.js",
+ "name": "project",
+ "scripts": Object {
+ "hello": "echo Hello",
+ "test": "echo /"Error: no test specified/" && exit 1",
},
- "devDependencies": {
- "promise-all-reject-late": "^1.0.1"
- }
+ "version": "1.0.0",
}
-
`
-exports[`test/index.js TAP npm update dep > should have expected update reify output 1`] = `
-changed 1 package
+exports[`test/index.js TAP basic npm update dep > should have expected update reify output 1`] = `
+changed 1 package in {TIME}
1 package is looking for funding
run \`npm fund\` for details
`
-exports[`test/index.js TAP npm view > should have expected view output 1`] = `
-abbrev@1.0.4 | MIT | deps: none | versions: 8
-Like ruby's abbrev module, but in js
-https://github.com/isaacs/abbrev-js#readme
+exports[`test/index.js TAP basic npm view > should have expected view output 1`] = `
+abbrev@1.0.4 | Proprietary | deps: none | versions: 2
+mocked test package
dist
-.tarball: https://registry.npmjs.org/abbrev/-/abbrev-1.0.4.tgz
-.shasum: bd55ae5e413ba1722ee4caba1f6ea10414a59ecd
-
-maintainers:
-- nlf <quitlahok@gmail.com>
-- ruyadorno <ruyadorno@hotmail.com>
-- darcyclarke <darcy@darcyclarke.me>
-- adam_baldwin <evilpacket@gmail.com>
-- isaacs <i@izs.me>
+.tarball: http://smoke-test-registry.club/abbrev/-/abbrev-1.0.4.tgz
+.shasum: undefined
dist-tags:
latest: 1.1.1
-published over a year ago by isaacs <i@izs.me>
+published just now
`