Skip to content

Commit 42e2c1b

Browse files
Check realpath when change directory to a directory symbolic link
1 parent c79f239 commit 42e2c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/test/cd.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('cd cases', () => {
7070
assert.equal(process.cwd(), TEMP_DIR_2_SUBDIR_1);
7171

7272
tl.cd(TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1);
73-
assert.equal(process.cwd(), TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1);
73+
assert.equal(fs.realpathSync('.'), TEMP_DIR_1);
7474

7575
assert.equal(process.env.OLDPWD, TEMP_DIR_2_SUBDIR_1);
7676

0 commit comments

Comments
 (0)