| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c807287 commit e3f9bc8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,13 +1,13 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | 3 | require('../common'); | |
| 4 | - var assert = require('assert'); | ||
| 5 | - var http = require('http'); | ||
| 4 | + const assert = require('assert'); | ||
| 5 | + const http = require('http'); | ||
| 6 | 6 | ||
| 7 | - var agent = new http.Agent(); | ||
| 7 | + const agent = new http.Agent(); | ||
| 8 | 8 | ||
| 9 | 9 | // default to localhost | |
| 10 | - assert.equal( | ||
| 10 | + assert.strictEqual( | ||
| 11 | 11 | agent.getName({ | |
| 12 | 12 | port: 80, | |
| 13 | 13 | localAddress: '192.168.1.1' | |
@@ -16,13 +16,13 @@ assert.equal( | |||
| 16 | 16 | ); | |
| 17 | 17 | ||
| 18 | 18 | // empty | |
| 19 | - assert.equal( | ||
| 19 | + assert.strictEqual( | ||
| 20 | 20 | agent.getName({}), | |
| 21 | 21 | 'localhost::' | |
| 22 | 22 | ); | |
| 23 | 23 | ||
| 24 | 24 | // pass all arguments | |
| 25 | - assert.equal( | ||
| 25 | + assert.strictEqual( | ||
| 26 | 26 | agent.getName({ | |
| 27 | 27 | host: '0.0.0.0', | |
| 28 | 28 | port: 80, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments