Skip to content

Commit 65fa844

Browse files
authored
update typed-rest-client to 1.7.2 (#375)
* update typed-rest-client to 1.7.1 * bump version to 1.7.2 * fix wrong command for execute unit tests
1 parent d990ed0 commit 65fa844

5 files changed

Lines changed: 37 additions & 13 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You should test with node 4.x, 6.x and 8.x LTS. We recommend using nvm ([linux]
1818
To run units:
1919

2020
```
21-
npm units
21+
npm run units
2222
```
2323

2424
To run all tests:

package-lock.json

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"license": "MIT",
2626
"dependencies": {
2727
"tunnel": "0.0.6",
28-
"typed-rest-client": "1.2.0",
28+
"typed-rest-client": "1.7.2",
2929
"underscore": "1.8.3"
3030
},
3131
"devDependencies": {

test/package-lock.json

Lines changed: 24 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/units/tests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ describe('WebApi Units', function () {
234234
const nodeApiVersion: string = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
235235

236236
it('sets the user agent correctly when request settings are specified', async () => {
237-
const myWebApi: WebApi.WebApi = new WebApi.WebApi('microsoft.com', WebApi.getBasicHandler('user', 'password'),
237+
const myWebApi: WebApi.WebApi = new WebApi.WebApi('https://microsoft.com', WebApi.getBasicHandler('user', 'password'),
238238
undefined, {productName: 'name', productVersion: '1.2.3'});
239239
const userAgent: string = `name/1.2.3 (${nodeApiName} ${nodeApiVersion}; ${osName} ${osVersion})`;
240240
assert.equal(userAgent, myWebApi.rest.client.userAgent, 'User agent should be: ' + userAgent);
241241
});
242242

243243
it('sets the user agent correctly when request settings are not specified', async () => {
244-
const myWebApi: WebApi.WebApi = new WebApi.WebApi('microsoft.com', WebApi.getBasicHandler('user', 'password'), undefined);
244+
const myWebApi: WebApi.WebApi = new WebApi.WebApi('https://microsoft.com', WebApi.getBasicHandler('user', 'password'), undefined);
245245
const userAgent: string = `${nodeApiName}/${nodeApiVersion} (${osName} ${osVersion})`;
246246
assert.equal(userAgent, myWebApi.rest.client.userAgent, 'User agent should be: ' + userAgent);
247247
});

0 commit comments

Comments
 (0)