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: nodejs#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 BridgeAR committed Oct 15, 2018
1 parent bc89f9b commit c596bcc
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 c596bcc

Please sign in to comment.