Skip to content

Commit

Permalink
Fixes windows test (yarnpkg#3316)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis authored and bestander committed May 4, 2017
1 parent 00f6780 commit d097060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/commands/install/lockfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test('does fetch files from the local filesystem', (): Promise<void> => {
return runInstall({}, 'install-should-fetch-local-tarballs', (config): Promise<void> => {
return Promise.resolve();
}, async (cwd) => {
await fs.writeFile(`${cwd}/package.json`, (await fs.readFile(`${cwd}/package.json`)).replace(/%%CWD%%/g, cwd));
await fs.writeFile(`${cwd}/package.json`, (await fs.readFile(`${cwd}/package.json`)).replace(/%%CWD%%/g, cwd.replace(/\\/g, `/`)));
});
});

Expand Down

0 comments on commit d097060

Please sign in to comment.