Skip to content

Commit

Permalink
test: update assertion parameter order
Browse files Browse the repository at this point in the history
Update assertions to be `value`, `expectedValue`.

PR-URL: nodejs#23614
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
seanhealy authored and BridgeAR committed Oct 15, 2018
1 parent 5e6d453 commit a5e6edb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const proxy = http.createServer(function(req, res) {

console.error(`proxy res headers: ${JSON.stringify(proxy_res.headers)}`);

assert.strictEqual('world', proxy_res.headers.hello);
assert.strictEqual('text/plain', proxy_res.headers['content-type']);
assert.deepStrictEqual(cookies, proxy_res.headers['set-cookie']);
assert.strictEqual(proxy_res.headers.hello, 'world');
assert.strictEqual(proxy_res.headers['content-type'], 'text/plain');
assert.deepStrictEqual(proxy_res.headers['set-cookie'], cookies);

res.writeHead(proxy_res.statusCode, proxy_res.headers);

Expand All @@ -79,11 +79,11 @@ function startReq() {
path: '/test'
}, function(res) {
console.error('got res');
assert.strictEqual(200, res.statusCode);
assert.strictEqual(res.statusCode, 200);

assert.strictEqual('world', res.headers.hello);
assert.strictEqual('text/plain', res.headers['content-type']);
assert.deepStrictEqual(cookies, res.headers['set-cookie']);
assert.strictEqual(res.headers.hello, 'world');
assert.strictEqual(res.headers['content-type'], 'text/plain');
assert.deepStrictEqual(res.headers['set-cookie'], cookies);

res.setEncoding('utf8');
res.on('data', function(chunk) { body += chunk; });
Expand Down

0 comments on commit a5e6edb

Please sign in to comment.