Skip to content

Commit

Permalink
fix: code refactor (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Jun 6, 2023
1 parent 232b5ba commit cd98184
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __e2e__/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
cleanupSync,
writeFiles,
} from '../jest/helpers';
import slash from 'slash';

const DIR = getTempDirectory('command-init');

Expand Down Expand Up @@ -41,7 +42,7 @@ afterEach(() => {

let templatePath = path.resolve(DIR, 'custom', 'template');
if (process.platform === 'win32') {
templatePath = templatePath.split('\\').join('/');
templatePath = slash(templatePath);
} else {
templatePath = `file://${templatePath}`;
}
Expand Down

0 comments on commit cd98184

Please sign in to comment.