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:
parent
c56f38f6f9
commit
3f7755b24c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user