Skip to content

Commit 6bbde38

Browse files
committed
[Tests] improve output of symlink tests that fail on Mac
1 parent ffc22c1 commit 6bbde38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/symlinks.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ test('sync symlink when preserveSymlinks = true', function (t) {
4343

4444
test('sync symlink', function (t) {
4545
var start = new Date();
46-
t.equal(resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js'));
46+
t.doesNotThrow(function () {
47+
t.equal(resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js'));
48+
});
4749
t.ok(new Date() - start < 50, 'resolve.sync timedout');
4850
t.end();
4951
});

0 commit comments

Comments
 (0)