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.

PR-URL: https://github.com/nodejs/node/pull/23563
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
Mel authored and Myles Borins committed 2018-11-29 11:38:50 -05:00
1 parent 46ca12f81e
commit 7c35f7f608
1 file changed
+2 -2
+2 -2
View File
@@ -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();