From d35965bbf9d165cfe289ce7370876582cf5ab61f Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 12 Oct 2018 10:46:35 -0700 Subject: [PATCH] test: fix arguments ordering for assertions to match the docs PR-URL: https://github.com/nodejs/node/pull/23575 Reviewed-By: Hitesh Kanwathirtha Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil Reviewed-By: Sakthipriyan Vairamani --- test/parallel/test-require-resolve.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/test/parallel/test-require-resolve.js b/test/parallel/test-require-resolve.js index 2916f3709e3b15..2ffcc711854a87 100644 --- a/test/parallel/test-require-resolve.js +++ b/test/parallel/test-require-resolve.js @@ -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'));