summaryrefslogtreecommitdiff
path: root/deps/npm/test/tap/spawn-enoent.js
diff options
context:
space:
mode:
authorMyles Borins <mylesborins@github.com>2020-10-02 17:52:19 -0400
committerMyles Borins <mylesborins@github.com>2020-10-07 09:59:49 -0400
commit2e545249557c265f7d5f338cc3a382985211603c (patch)
treea18ca49252a58cc5a80cd438a020a99bf48a8d23 /deps/npm/test/tap/spawn-enoent.js
parent14699846452e627f97dedb85991eea67d932a79d (diff)
downloadnode-new-2e545249557c265f7d5f338cc3a382985211603c.tar.gz
deps: update npm to 7.0.0-rc.3
PR-URL: https://github.com/nodejs/node/pull/35474 Reviewed-By: Ruy Adorno <ruyadorno@github.com> Reviewed-By: Ujjwal Sharma <ryzokuken@disroot.org> Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'deps/npm/test/tap/spawn-enoent.js')
-rw-r--r--deps/npm/test/tap/spawn-enoent.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/deps/npm/test/tap/spawn-enoent.js b/deps/npm/test/tap/spawn-enoent.js
deleted file mode 100644
index 78153572ee..0000000000
--- a/deps/npm/test/tap/spawn-enoent.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var test = require('tap').test
-var fs = require('fs')
-var rimraf = require('rimraf')
-var mkdirp = require('mkdirp')
-var common = require('../common-tap.js')
-
-var pkg = common.pkg
-var pj = JSON.stringify({
- name: 'x',
- version: '1.2.3',
- scripts: { start: 'wharble-garble-blorst' }
-}, null, 2) + '\n'
-
-test('setup', function (t) {
- rimraf.sync(pkg)
- mkdirp.sync(pkg)
- fs.writeFileSync(pkg + '/package.json', pj)
- t.end()
-})
-
-test('enoent script', function (t) {
- common.npm(['start'], {
- cwd: pkg,
- env: {
- PATH: process.env.PATH,
- Path: process.env.Path,
- 'npm_config_loglevel': 'warn'
- }
- }, function (er, code, sout, serr) {
- t.similar(serr, /npm ERR! Failed at the x@1\.2\.3 start script\./)
- t.end()
- })
-})
-
-test('clean', function (t) {
- rimraf.sync(pkg)
- t.end()
-})