Skip to content
Prev Previous commit
Next Next commit
fixup! Fix lint error
  • Loading branch information
peterdanis committed Oct 31, 2017
commit aa941c65ca52c0192cfce00dc09983593f4d1a0c
6 changes: 2 additions & 4 deletions integration_tests/__tests__/only_changed.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ test('path on Windows is case-insensitive', () => {

const modifiedDIR = path.resolve(DIR, 'outer_dir', 'inner_dir');
const incorrectModifiedDIR = path.resolve(DIR, 'OUTER_dir', 'inner_dir');
let stderr;
let stdout;

writeFiles(modifiedDIR, {
'.watchmanconfig': '',
Expand All @@ -210,7 +208,7 @@ test('path on Windows is case-insensitive', () => {
run(`${GIT} add .`, modifiedDIR);
run(`${GIT} commit -m "first"`, modifiedDIR);

({stdout} = runJest(incorrectModifiedDIR, ['-o']));
const {stdout} = runJest(incorrectModifiedDIR, ['-o']);
expect(stdout).toMatch('No tests found related to files');

writeFiles(modifiedDIR, {
Expand All @@ -220,7 +218,7 @@ test('path on Windows is case-insensitive', () => {
'file3.js': `require('./file2')`,
});

({stderr} = runJest(incorrectModifiedDIR, ['-o']));
const {stderr} = runJest(incorrectModifiedDIR, ['-o']);

expect(stderr).not.toMatch(/PASS __tests__(\/|\\)file1.test.js/);
expect(stderr).toMatch(/PASS __tests__(\/|\\)file2.test.js/);
Expand Down