mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
46ca12f81e
commit
7c35f7f608
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user