Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
chore(deps): update dependency typescript to ~3.3.0 (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and JustinBeckwith committed Feb 5, 2019
1 parent e8c4c53 commit 4716070
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"nyc": "^13.0.0",
"source-map-support": "^0.5.6",
"through2": "^3.0.0",
"typescript": "~3.2.0"
"typescript": "~3.3.0"
}
}
20 changes: 14 additions & 6 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,13 @@ describe('gcs-resumable-upload', () => {
});

it('should execute the callback with a body error & response', async () => {
const error = new GaxiosError(
'Error message', {},
{config: {}, data: {}, status: 500, headers: {}});
const error = new GaxiosError('Error message', {}, {
config: {},
data: {},
status: 500,
statusText: 'sad trombone',
headers: {}
});
mockAuthorizeRequest();
const scope = nock(REQ_OPTS.url).get(queryPath).reply(500, {error});
await assertRejects(up.makeRequest(REQ_OPTS), (err: GaxiosError) => {
Expand All @@ -758,9 +762,13 @@ describe('gcs-resumable-upload', () => {

it('should execute the callback with a body error & response for non-2xx status codes',
async () => {
const error = new GaxiosError(
'Error message', {},
{config: {}, data: {}, status: 500, headers: {}});
const error = new GaxiosError('Error message', {}, {
config: {},
data: {},
status: 500,
statusText: 'sad trombone',
headers: {}
});
mockAuthorizeRequest();
const scope = nock(REQ_OPTS.url).get(queryPath).reply(500, {error});
await assertRejects(up.makeRequest(REQ_OPTS), (err: GaxiosError) => {
Expand Down

0 comments on commit 4716070

Please sign in to comment.