Skip to content

Commit af59b9d

Browse files
zzidantejasnell
authored andcommitted
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: #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>
1 parent ca24bcf commit af59b9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-client-get-url.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const URL = url.URL;
2828
const testPath = '/foo?bar';
2929

3030
const server = http.createServer(common.mustCall((req, res) => {
31-
assert.strictEqual('GET', req.method);
32-
assert.strictEqual(testPath, req.url);
31+
assert.strictEqual(req.method, 'GET');
32+
assert.strictEqual(req.url, testPath);
3333
res.writeHead(200, { 'Content-Type': 'text/plain' });
3434
res.write('hello\n');
3535
res.end();

0 commit comments

Comments
 (0)