Skip to content

Commit

Permalink
chore(api-github-v3): test ignore 403 rate limit exceeded handler
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Mar 26, 2020
1 parent 4658f84 commit 57e925e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vssue/api-github-v3/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default class GithubV3 implements VssueAPI.Instance {
// 403 rate limit exceeded in OPTIONS request will cause a Network Error
// here we always treat Network Error as 403 rate limit exceeded
// @see https://github.com/axios/axios/issues/838
/* istanbul ignore next */
if (
typeof error.response === 'undefined' &&
error.message === 'Network Error'
Expand Down

0 comments on commit 57e925e

Please sign in to comment.