mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
test: s/assert.equal/assert.strictEqual/
Use assert.strictEqual instead of assert.equal in tests, manually convert types where necessary. PR-URL: https://github.com/nodejs/node/pull/10698 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
This commit is contained in:
parent
81fef918d5
commit
3d2aef3979
331 changed files with 1704 additions and 1665 deletions
|
@ -4,7 +4,7 @@ const assert = require('assert');
|
|||
const http = require('http');
|
||||
|
||||
const server = http.createServer(common.mustCall(function(req, res) {
|
||||
assert.equal('POST', req.method);
|
||||
assert.strictEqual('POST', req.method);
|
||||
req.setEncoding('utf8');
|
||||
|
||||
let sent_body = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue