Skip to content

Commit

Permalink
test(integration): left-pad released a new version which broke tests (#…
Browse files Browse the repository at this point in the history
…5635)

**Summary**

Pins the left-pad version used in tests to 1.2.0 to avoid future breakage when a new version is
released.

**Test plan**

Duh :D
  • Loading branch information
BYK authored Apr 10, 2018
1 parent ffe9a64 commit 0cb76ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 45 deletions.
43 changes: 0 additions & 43 deletions __tests__/commands/__snapshots__/info.js.snap

This file was deleted.

2 changes: 1 addition & 1 deletion __tests__/commands/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ test.concurrent('with one argument does not contain readme field', (): Promise<v
test.concurrent('with two arguments and second argument "readme" shows readme string', (): Promise<void> => {
return runInfo(['left-pad', 'readme'], {}, '', (config, output): ?Promise<void> => {
expect(typeof output).toBe('string');
expect(output).toMatchSnapshot('left-pad readme');
expect(output).toMatch(/left-pad/);
});
});

Expand Down
2 changes: 1 addition & 1 deletion __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function expectAnInfoMessageAfterError(command: Promise<Array<?string>>, expecte
}

test('should add package', async () => {
const stdout = await execCommand('add', ['left-pad'], 'run-add', true);
const stdout = await execCommand('add', ['left-pad@1.2.0'], 'run-add', true);
expectAddOutput(stdout);
});

Expand Down

0 comments on commit 0cb76ff

Please sign in to comment.