Skip to content

Commit

Permalink
[Tests] fix tests on node v12.0-12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 15, 2022
1 parent e9e764c commit 3ab1da8
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
&& !(/^v12\.[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 3ab1da8

Please sign in to comment.