From 03732a62f6bef6254755ca78d5c6320cefab5ce1 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 12 Oct 2018 10:04:07 -0700 Subject: [PATCH] test: switch order of assertion arguments this updates the arguments in order to give the actual return value first and the given expected value second. --- test/parallel/test-http-client-get-url.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-client-get-url.js b/test/parallel/test-http-client-get-url.js index 7f6bfb8ecaa17b..a72eea56538c4d 100644 --- a/test/parallel/test-http-client-get-url.js +++ b/test/parallel/test-http-client-get-url.js @@ -28,8 +28,8 @@ const URL = url.URL; const testPath = '/foo?bar'; const server = http.createServer(common.mustCall((req, res) => { - assert.strictEqual('GET', req.method); - assert.strictEqual(testPath, req.url); + assert.strictEqual(req.method, 'GET'); + assert.strictEqual(req.url, testPath); res.writeHead(200, { 'Content-Type': 'text/plain' }); res.write('hello\n'); res.end();