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
Illescas, Ricardo 2018-10-12 12:15:43 -06:00 committed by Rich Trott
parent 61aa81e16c
commit 35ed66c776
1 changed files with 1 additions and 1 deletions

View File

@ -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);