|
| 1 | +var URL |
| 2 | +URL = URL || require('url').URL |
| 3 | + |
1 | 4 | const armlet = require('../index') |
2 | 5 | const Client = require('../index').Client |
3 | 6 | const sinon = require('sinon') |
4 | | -const url = require('url') |
5 | 7 | const HttpErrors = require('http-errors') |
6 | 8 | require('chai') |
7 | 9 | .use(require('chai-as-promised')) |
@@ -64,7 +66,7 @@ describe('main module', () => { |
64 | 66 | it('initialize apiUrl to the given value', () => { |
65 | 67 | const instance = new Client({ ethAddress, password }, apiUrl) |
66 | 68 |
|
67 | | - instance.apiUrl.should.be.deep.equal(new url.URL(apiUrl)) |
| 69 | + instance.apiUrl.should.be.deep.equal(new URL(apiUrl)) |
68 | 70 | }) |
69 | 71 |
|
70 | 72 | describe('instances should', () => { |
@@ -168,7 +170,7 @@ describe('main module', () => { |
168 | 170 | describe('functionality', () => { |
169 | 171 | const uuid = 'analysis-uuid' |
170 | 172 | const issues = ['issue1', 'issue2'] |
171 | | - const parsedApiUrl = new url.URL(apiUrl) |
| 173 | + const parsedApiUrl = new URL(apiUrl) |
172 | 174 | const refreshToken = 'refresh-token' |
173 | 175 | const accessToken = 'access-token' |
174 | 176 |
|
|
0 commit comments