Skip to content

Commit

Permalink
tests: update
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 4, 2020
1 parent 5977e5f commit 9b3c4c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/core-flags/context-flag.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ describe('--context flag', () => {
expect(stderr).toBeFalsy();
expect(exitCode).toBe(0);
if (isWindows) {
expect(stdout).toContain(`context: 'D:\\\\a\\\\webpack-cli\\\\webpack-cli\\\\test\\\\core-flags'`);
const windowsPath = resolve(__dirname, './').replace(/\\/g, '\\\\');
expect(stdout).toContain(windowsPath);
} else {
expect(stdout).toContain(`context: '${resolve(__dirname, './')}'`);
}
Expand Down

0 comments on commit 9b3c4c5

Please sign in to comment.