Skip to content

Commit 7014b7c

Browse files
committed
test: make fs-symlink-dir-junction-relative pass on unix
1 parent 764c5c7 commit 7014b7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/simple/test-fs-symlink-dir-junction-relative.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ var completed = 0;
2727
var expected_tests = 4;
2828

2929
// test creating and reading symbolic link
30-
var linkData = path.join(common.fixturesDir, 'cycles/');
30+
var linkData = path.join(common.fixturesDir, 'cycles');
3131
var linkPath = path.join(common.tmpDir, 'cycles_link');
32-
var relative = '../fixtures/cycles'
32+
var relative = '../fixtures/cycles';
3333

3434
// Delete previously created link
3535
try {
@@ -51,7 +51,7 @@ fs.symlink(relative, linkPath, 'junction', function(err) {
5151

5252
fs.readlink(linkPath, function(err, destination) {
5353
if (err) throw err;
54-
assert.equal(destination, linkData);
54+
assert.equal(path.resolve(destination), linkData);
5555
completed++;
5656

5757
fs.unlink(linkPath, function(err) {

0 commit comments

Comments
 (0)