Skip to content

Commit

Permalink
test: make fs-symlink-dir-junction-relative pass on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Dec 9, 2014
1 parent 764c5c7 commit 7014b7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/simple/test-fs-symlink-dir-junction-relative.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ var completed = 0;
var expected_tests = 4;

// test creating and reading symbolic link
var linkData = path.join(common.fixturesDir, 'cycles/');
var linkData = path.join(common.fixturesDir, 'cycles');
var linkPath = path.join(common.tmpDir, 'cycles_link');
var relative = '../fixtures/cycles'
var relative = '../fixtures/cycles';

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

fs.readlink(linkPath, function(err, destination) {
if (err) throw err;
assert.equal(destination, linkData);
assert.equal(path.resolve(destination), linkData);
completed++;

fs.unlink(linkPath, function(err) {
Expand Down

0 comments on commit 7014b7c

Please sign in to comment.