We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c79f239 commit ddc88d6Copy full SHA for ddc88d6
node/test/cd.ts
@@ -70,7 +70,7 @@ describe('cd cases', () => {
70
assert.equal(process.cwd(), TEMP_DIR_2_SUBDIR_1);
71
72
tl.cd(TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1);
73
- assert.equal(process.cwd(), TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1);
+ assert.equal(fs.realpathSync('.'), TEMP_DIR_1);
74
75
assert.equal(process.env.OLDPWD, TEMP_DIR_2_SUBDIR_1);
76
@@ -92,7 +92,7 @@ describe('cd cases', () => {
92
it('Provide path that is a dir symlink', (done) => {
93
assert.ok(fs.existsSync(TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1));
94
assert.doesNotThrow(() => tl.cd(TEMP_DIR_2_SUBDIR_1_SYMLINK_DIR_1));
95
96
done();
97
});
98
0 commit comments