Skip to content

Commit e3f9bc8

Browse files
bnoordhuisMyles Borins
authored and
Myles Borins
committed
test: use strictEqual consistently in agent test
Update parallel/test-http-agent-getname to use assert.strictEqual() consistently and const-ify variables while we're here. PR-URL: #6654 Reviewed-By: Colin Ihrig <[email protected]>
1 parent c807287 commit e3f9bc8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/parallel/test-http-agent-getname.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
'use strict';
22

33
require('../common');
4-
var assert = require('assert');
5-
var http = require('http');
4+
const assert = require('assert');
5+
const http = require('http');
66

7-
var agent = new http.Agent();
7+
const agent = new http.Agent();
88

99
// default to localhost
10-
assert.equal(
10+
assert.strictEqual(
1111
agent.getName({
1212
port: 80,
1313
localAddress: '192.168.1.1'
@@ -16,13 +16,13 @@ assert.equal(
1616
);
1717

1818
// empty
19-
assert.equal(
19+
assert.strictEqual(
2020
agent.getName({}),
2121
'localhost::'
2222
);
2323

2424
// pass all arguments
25-
assert.equal(
25+
assert.strictEqual(
2626
agent.getName({
2727
host: '0.0.0.0',
2828
port: 80,

0 commit comments

Comments
 (0)