mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
test: fix assertion order
PR-URL: https://github.com/nodejs/node/pull/23626 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
1 parent
42f43d5827
commit
e7cbc3f4f1
1 file changed
+2
-2
@@ -40,8 +40,8 @@ const options = {
|
||||
};
|
||||
|
||||
const server = https.createServer(options, common.mustCall((req, res) => {
|
||||
assert.strictEqual('GET', req.method);
|
||||
assert.strictEqual('/foo?bar', req.url);
|
||||
assert.strictEqual(req.method, 'GET');
|
||||
assert.strictEqual(req.url, '/foo?bar');
|
||||
res.writeHead(200, { 'Content-Type': 'text/plain' });
|
||||
res.write('hello\n');
|
||||
res.end();
|
||||
|
||||
Reference in new issue
Block a user