test: fix assertion arguments order
PR-URL: https://github.com/nodejs/node/pull/23787 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
90cd3dd44e
commit
89aa33a3e2
@ -44,13 +44,13 @@ const server = http.createServer(function(request, response) {
|
||||
let response = '';
|
||||
|
||||
process.on('exit', function() {
|
||||
assert.strictEqual('beep boop\n', response);
|
||||
assert.strictEqual(response, 'beep boop\n');
|
||||
console.log('ok');
|
||||
});
|
||||
|
||||
server.listen(0, function() {
|
||||
http.get({ port: this.address().port }, function(res) {
|
||||
assert.strictEqual(200, res.statusCode);
|
||||
assert.strictEqual(res.statusCode, 200);
|
||||
assert.deepStrictEqual(res.headers, { date: 'coffee o clock' });
|
||||
|
||||
res.setEncoding('ascii');
|
||||
|
Loading…
x
Reference in New Issue
Block a user