Skip to content

Commit

Permalink
[Test] fix incorrect require.resolve paths logic; enable these tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 11, 2022
1 parent f5cf55d commit 232bff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/resolver_sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var resolve = require('../');
var sync = require('../sync');

var requireResolveSupportsPaths = require.resolve.length > 1
&& (/^12\.[012]\./).test(process.version); // broken in v12.0-12.2, see https://github.com/nodejs/node/issues/27794
&& !(/^12\.[012]\./).test(process.version); // broken in v12.0-12.2, see https://github.com/nodejs/node/issues/27794

test('`./sync` entry point', function (t) {
t.equal(resolve.sync, sync, '`./sync` entry point is the same as `.sync` on `main`');
Expand Down

0 comments on commit 232bff4

Please sign in to comment.