Skip to content

Commit

Permalink
test: use strictEqual consistently in agent test
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bnoordhuis authored and Myles Borins committed Jul 12, 2016
1 parent c807287 commit e3f9bc8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/parallel/test-http-agent-getname.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

require('../common');
var assert = require('assert');
var http = require('http');
const assert = require('assert');
const http = require('http');

var agent = new http.Agent();
const agent = new http.Agent();

// default to localhost
assert.equal(
assert.strictEqual(
agent.getName({
port: 80,
localAddress: '192.168.1.1'
Expand All @@ -16,13 +16,13 @@ assert.equal(
);

// empty
assert.equal(
assert.strictEqual(
agent.getName({}),
'localhost::'
);

// pass all arguments
assert.equal(
assert.strictEqual(
agent.getName({
host: '0.0.0.0',
port: 80,
Expand Down

0 comments on commit e3f9bc8

Please sign in to comment.