From ade941c7b8e21c20d9311f06574c1d985beb1184 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Wed, 21 Dec 2022 13:52:10 -0500 Subject: [PATCH] chore: remove gh legacy url test --- test/network/legacy-url-dep.js | 59 ---------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 test/network/legacy-url-dep.js diff --git a/test/network/legacy-url-dep.js b/test/network/legacy-url-dep.js deleted file mode 100644 index 78626957548b3..0000000000000 --- a/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': 'https://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) -}