Skip to content

Commit af922ad

Browse files
author
Benjamin Pasero
committed
debt - prefer our path lib over node
1 parent 92a83fb commit af922ad

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/vs/base/test/node/pfs/pfs.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { getPathFromAmdModule } from 'vs/base/common/amd';
1515
import { isWindows, isLinux } from 'vs/base/common/platform';
1616
import { canNormalize } from 'vs/base/common/normalization';
1717
import { VSBuffer } from 'vs/base/common/buffer';
18-
import { join } from 'path';
1918

2019
const chunkSize = 64 * 1024;
2120
const readError = 'Error while reading';
@@ -379,12 +378,12 @@ suite('PFS', function () {
379378
if (canNormalize && typeof process.versions['electron'] !== 'undefined' /* needs electron */) {
380379
const id = uuid.generateUuid();
381380
const parentDir = path.join(os.tmpdir(), 'vsctests', id);
382-
const testDir = join(parentDir, 'pfs', id);
381+
const testDir = path.join(parentDir, 'pfs', id);
383382

384383
const newDir = path.join(testDir, 'öäü');
385384
await pfs.mkdirp(newDir, 493);
386385

387-
await pfs.writeFile(join(testDir, 'somefile.txt'), 'contents');
386+
await pfs.writeFile(path.join(testDir, 'somefile.txt'), 'contents');
388387

389388
assert.ok(fs.existsSync(newDir));
390389

0 commit comments

Comments
 (0)