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:
Elian Gutierrez authored and Rod Vagg committed 2018-11-28 11:26:47 +11:00
1 parent e2d2ce6706
commit 544e64d68d
1 file changed
+2 -2
@@ -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');