summaryrefslogtreecommitdiff
path: root/deps/npm/test/network/legacy-url-dep.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/network/legacy-url-dep.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/network/legacy-url-dep.js')
-rw-r--r--deps/npm/test/network/legacy-url-dep.js59
1 files changed, 0 insertions, 59 deletions
diff --git a/deps/npm/test/network/legacy-url-dep.js b/deps/npm/test/network/legacy-url-dep.js
deleted file mode 100644
index 46378cd3ef..0000000000
--- a/deps/npm/test/network/legacy-url-dep.js
+++ /dev/null
@@ -1,59 +0,0 @@
-'use strict'
-var test = require('tap').test
-var common = require('../common-tap.js')
-var path = require('path')
-var rimraf = require('rimraf')
-var mkdirp = require('mkdirp')
-var basepath = path.resolve(__dirname, path.basename(__filename, '.js'))
-var fixturepath = path.resolve(basepath, 'npm-test-url-dep')
-var modulepath = path.resolve(basepath, 'node_modules')
-var Tacks = require('tacks')
-var File = Tacks.File
-var Dir = Tacks.Dir
-
-var fixture = new Tacks(
- Dir({
- README: File(
- 'just an npm test\n'
- ),
- 'package.json': File({
- name: 'npm-test-url-dep',
- version: '1.2.3',
- dependencies: {
- jsonify: 'https://github.com/substack/jsonify/tarball/master',
- sax: 'isaacs/sax-js',
- 'canonical-host': 'git://github.com/isaacs/canonical-host'
- }
- })
- })
-)
-
-test('setup', function (t) {
- setup()
- t.done()
-})
-
-test('url-dep', function (t) {
- common.npm(['install', fixturepath], {cwd: basepath}, installCheckAndTest)
- function installCheckAndTest (err, code, stdout, stderr) {
- if (err) throw err
- t.is(code, 0, 'install went ok')
- t.done()
- }
-})
-
-test('cleanup', function (t) {
- cleanup()
- t.done()
-})
-
-function setup () {
- cleanup()
- fixture.create(fixturepath)
- mkdirp.sync(modulepath)
-}
-
-function cleanup () {
- fixture.remove(fixturepath)
- rimraf.sync(basepath)
-}