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 install-test 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 f0f7b0f commit bc32afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/network/it.js → test/tap/it.js
Expand Up @@ -35,7 +35,7 @@ test('run up the mock registry', function (t) {

test('npm install-test', function (t) {
setup()
common.npm('install-test', { cwd: pkg }, function (err, code, stdout, stderr) {
common.npm(['install-test', '--registry=' + common.registry], { cwd: pkg }, function (err, code, stdout, stderr) {
if (err) throw err
t.equal(code, 0, 'command ran without error')
t.ok(statSync(installed), 'package was installed')
Expand All @@ -48,7 +48,7 @@ test('npm install-test', function (t) {

test('npm it (the form most people will use)', function (t) {
setup()
common.npm('it', { cwd: pkg }, function (err, code, stdout, stderr) {
common.npm(['it', '--registry=' + common.registry], { cwd: pkg }, function (err, code, stdout, stderr) {
if (err) throw err
t.equal(code, 0, 'command ran without error')
t.ok(statSync(installed), 'package was installed')
Expand Down

0 comments on commit bc32afe

Please sign in to comment.