Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
test: Remove network dependency from legacy-optional-deps test
Browse files Browse the repository at this point in the history
PR-URL: #15085
Credit: @iarna
Reviewed-By: @zkat
  • Loading branch information
iarna authored and zkat committed Dec 1, 2016
1 parent db2666d commit 744a39b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -22,7 +22,7 @@ var fixture = new Tacks(
name: 'npm-test-optional-deps',
version: '1.2.5',
optionalDependencies: {
'npm-test-foobarzaaakakaka': 'http://example.com/',
'npm-test-foobarzaaakakaka': common.registry + '/not-a-package',
async: '10.999.14234',
mkdirp: '0.3.5',
optimist: 'some invalid version 99 #! $$ x y z',
Expand All @@ -45,6 +45,7 @@ test('setup', function (t) {

test('optional-deps', function (t) {
server.get('/npm-test-failer').reply(404, {error: 'nope'})
server.get('/not-a-package').reply(200, 'HI THERE')

var opts = ['--registry=' + common.registry, '--timeout=100']
common.npm(opts.concat(['install', fixturepath]), {cwd: basepath}, installCheckAndTest)
Expand Down

0 comments on commit 744a39b

Please sign in to comment.