0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00

test: change assert message to default

assert.strictEqual message argument removed to replace
with default assert message to show the expected vs
actual values

PR-URL: https://github.com/nodejs/node/pull/18259
Refs: https://github.com/nodejs/node/issues/13296
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
ryanmahan 2018-01-19 15:06:58 -05:00 committed by Rich Trott
parent 6394c8d99d
commit f5d9169ded

View File

@ -10,11 +10,7 @@ const http = require('http');
const expected = '/café🐶';
assert.strictEqual(
expected,
'/caf\u{e9}\u{1f436}',
'Sanity check that string literal produced the expected string'
);
assert.strictEqual('/caf\u{e9}\u{1f436}', expected);
const server = http.createServer(common.mustCall(function(req, res) {
assert.strictEqual(req.url, expected);