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:
chris48s
2020-10-15 22:44:07 +01:00
committed by GitHub
parent e03549d88d
commit a4a8258fd5

View File

@@ -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