Skip to content

Commit

Permalink
Updates snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Apr 19, 2022
1 parent 1f064e9 commit cc7d5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/_binHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Filename, ppath, xfs, PortablePath} from '@yarnpkg/fslib';
export async function makeBin(cwd: PortablePath, name: Filename, {ignorePlatform = false}: {ignorePlatform?: boolean} = {}) {
let path = ppath.join(cwd, name);
if (process.platform === `win32` && !ignorePlatform)
path = `${path}.cmd` as PortablePath;
path = `${path}.CMD` as PortablePath;

await xfs.writeFilePromise(path, ``);
await xfs.chmodPromise(path, 0o755);
Expand All @@ -17,7 +17,7 @@ export function getBinaryNames(name: string) {

return [
`${name}`,
`${name}.cmd`,
`${name}.CMD`,
`${name}.ps1`,
];
}

0 comments on commit cc7d5cb

Please sign in to comment.