Skip to content

Commit

Permalink
test: use new path module instead of realpath
Browse files Browse the repository at this point in the history
Checks correctness on Windows.
  • Loading branch information
saghul committed Nov 8, 2022
1 parent 84ba328 commit 7fd8da2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test-fs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { path as pathModule } from '@tjs/std';
import assert from './assert.js';

const encoder = new TextEncoder();
Expand Down Expand Up @@ -71,7 +72,7 @@ async function chdir() {
await tjs.mkdir(subDir);

tjs.chdir(subDir);
assert.eq(tjs.cwd(), await tjs.realpath(path+ '/' + subDir));
assert.eq(tjs.cwd(), pathModule.join(path, subDir));

tjs.chdir(path);
assert.eq(tjs.cwd(), path);
Expand Down

0 comments on commit 7fd8da2

Please sign in to comment.