unskip token integration test (#5711)
* unskip token integration test * Update services/github/github-api-provider.integration.js Co-authored-by: Paul Melnikow <github@paulmelnikow.com> Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
This commit is contained in:
@@ -79,7 +79,8 @@ describe('Github API provider', function () {
|
||||
}
|
||||
})
|
||||
|
||||
it.skip('should update the token with the final limit remaining and reset time', function () {
|
||||
// Is this test failing? See https://github.com/badges/shields/pull/4590#issuecomment-708551801
|
||||
it('should update the token with the final limit remaining and reset time', function () {
|
||||
const lastHeaders = headers.slice(-1)[0]
|
||||
const reserve = reserveFraction * +lastHeaders['x-ratelimit-limit']
|
||||
const usesRemaining = +lastHeaders['x-ratelimit-remaining'] - reserve
|
||||
|
||||
Reference in New Issue
Block a user