Skip to content

Commit

Permalink
test: fix arguments ordering for assertions to match the docs
Browse files Browse the repository at this point in the history
PR-URL: #23575
Reviewed-By: Hitesh Kanwathirtha <digitalinfinity@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
  • Loading branch information
lirantal authored and jasnell committed Oct 17, 2018
1 parent 152e7a5 commit d35965b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions test/parallel/test-require-resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ const fixtures = require('../common/fixtures');
const assert = require('assert');

assert.strictEqual(
fixtures.path('a.js').toLowerCase(),
require.resolve(fixtures.path('a')).toLowerCase());
require.resolve(fixtures.path('a')).toLowerCase(),
fixtures.path('a.js').toLowerCase());
assert.strictEqual(
fixtures.path('a.js').toLowerCase(),
require.resolve(fixtures.path('a')).toLowerCase());
assert.strictEqual(
fixtures.path('nested-index', 'one', 'index.js').toLowerCase(),
require.resolve(fixtures.path('nested-index', 'one')).toLowerCase());
assert.strictEqual('path', require.resolve('path'));
require.resolve(fixtures.path('nested-index', 'one')).toLowerCase(),
fixtures.path('nested-index', 'one', 'index.js').toLowerCase());
assert.strictEqual(require.resolve('path'), 'path');

// Test configurable resolve() paths.
require(fixtures.path('require-resolve.js'));
Expand Down

0 comments on commit d35965b

Please sign in to comment.