-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e66a622
commit 343437d
Showing
4 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ test('install just a single package and fail', async t => { | |
const spawn = fakeSpawn(); | ||
try { | ||
await main({ | ||
argv: {_: ['[email protected]']}, | ||
argv: {packages: ['[email protected]']}, | ||
stream, | ||
spawn, | ||
defaultMaxSize, | ||
|
@@ -36,7 +36,7 @@ test('install just a single package and succeed', async t => { | |
const spawn = fakeSpawn(); | ||
// | ||
await main({ | ||
argv: {_: ['[email protected]']}, | ||
argv: {packages: ['[email protected]']}, | ||
stream, | ||
spawn, | ||
defaultMaxSize, | ||
|
@@ -59,7 +59,7 @@ test('install just a single package and just warn', async t => { | |
const stream = fakeStream(); | ||
const spawn = fakeSpawn(); | ||
await main({ | ||
argv: {_: ['[email protected]'], w: true, warn: true, 'save-dev': true}, | ||
argv: {packages: ['[email protected]'], w: true, warn: true, 'save-dev': true}, | ||
stream, | ||
spawn, | ||
defaultMaxSize, | ||
|
@@ -84,7 +84,7 @@ test('ask to install a package and accept', async t => { | |
const spawn = fakeSpawn(); | ||
const prompt = fakePrompt(); | ||
await main({ | ||
argv: {_: ['[email protected]'], i: true, interactive: true}, | ||
argv: {packages: ['[email protected]'], i: true, interactive: true}, | ||
stream, | ||
spawn, | ||
prompt, | ||
|
@@ -109,7 +109,7 @@ test('ask to install a package and deny', async t => { | |
const spawn = fakeSpawn(); | ||
const prompt = fakePrompt(false); | ||
await main({ | ||
argv: {_: ['[email protected]'], i: true, interactive: true}, | ||
argv: {packages: ['[email protected]'], i: true, interactive: true}, | ||
stream, | ||
spawn, | ||
prompt, | ||
|
@@ -135,7 +135,7 @@ test('try to install package that does not exist', async t => { | |
const spawn = fakeSpawn(); | ||
try { | ||
await main({ | ||
argv: {_: ['no-sorry-but-i-do-not-exist']}, | ||
argv: {packages: ['no-sorry-but-i-do-not-exist']}, | ||
stream, | ||
spawn, | ||
defaultMaxSize, | ||
|
@@ -156,7 +156,7 @@ test('install just a single package on empty package with global config and succ | |
const spawn = fakeSpawn(); | ||
|
||
await main({ | ||
argv: {_: ['[email protected]']}, | ||
argv: {packages: ['[email protected]']}, | ||
stream, | ||
spawn, | ||
defaultMaxSize, | ||
|