Skip to content

Commit 6f771b2

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

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
@@ -41,7 +41,9 @@ test('sync symlink when preserveSymlinks = true', function (t) {
4141

4242
test('sync symlink', function (t) {
4343
var start = new Date();
44-
t.equal(resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js'));
44+
t.doesNotThrow(function () {
45+
t.equal(resolve.sync('foo', { basedir: symlinkDir, preserveSymlinks: false }), path.join(__dirname, 'resolver', 'symlinked', '_', 'node_modules', 'foo.js'));
46+
});
4547
t.ok(new Date() - start < 50, 'resolve.sync timedout');
4648
t.end();
4749
});

0 commit comments

Comments
 (0)