Skip to content

Commit

Permalink
Fixup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jun 21, 2019
1 parent 4b15039 commit eba434a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/cli/src/tools/__tests__/packageManager-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('npm', () => {

expect(execa).toHaveBeenCalledWith(
'npm',
['install', ...PACKAGES, '--save', '--save-exact'],
["install", "--save", "--save-exact", ...PACKAGES],
EXEC_OPTS,
);
});
Expand All @@ -65,7 +65,7 @@ describe('npm', () => {

expect(execa).toHaveBeenCalledWith(
'npm',
['install', ...PACKAGES, '--save-dev', '--save-exact'],
['install', '--save-dev', '--save-exact', ...PACKAGES],
EXEC_OPTS,
);
});
Expand All @@ -75,7 +75,7 @@ describe('npm', () => {

expect(execa).toHaveBeenCalledWith(
'npm',
['uninstall', ...PACKAGES, '--save'],
['uninstall', '--save', ...PACKAGES],
EXEC_OPTS,
);
});
Expand All @@ -87,7 +87,7 @@ it('should use npm if yarn is not available', () => {

expect(execa).toHaveBeenCalledWith(
'npm',
['install', ...PACKAGES, '--save', '--save-exact'],
['install', '--save', '--save-exact', ...PACKAGES],
EXEC_OPTS,
);
});
Expand All @@ -100,7 +100,7 @@ it('should use npm if project is not using yarn', () => {

expect(execa).toHaveBeenCalledWith(
'npm',
['install', ...PACKAGES, '--save', '--save-exact'],
['install', '--save', '--save-exact', ...PACKAGES],
EXEC_OPTS,
);
expect(yarn.isProjectUsingYarn).toHaveBeenCalledWith(PROJECT_ROOT);
Expand Down

0 comments on commit eba434a

Please sign in to comment.