mirror of https://github.com/nodejs/node.git
test: fix argument order in assertion
Change the order of assert parameters so the first argument is the value and the second one the expected value. PR-URL: https://github.com/nodejs/node/pull/23581 Reviewed-By: James M Snell <jasnell@gmail.com> 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> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>pull/23924/head
parent
61aa81e16c
commit
35ed66c776
|
@ -10,7 +10,7 @@ const http = require('http');
|
|||
|
||||
const expected = '/café🐶';
|
||||
|
||||
assert.strictEqual('/caf\u{e9}\u{1f436}', expected);
|
||||
assert.strictEqual(expected, '/caf\u{e9}\u{1f436}');
|
||||
|
||||
const server = http.createServer(common.mustCall(function(req, res) {
|
||||
assert.strictEqual(req.url, expected);
|
||||
|
|
Loading…
Reference in New Issue