fix(repo): test lint (#204)

Fixes src/repo/__test__/github.js
This commit is contained in:
simon3000 2019-09-02 18:15:43 +02:00 committed by Maximilian Berkmann
parent 38211bd367
commit b87fd03489

View file

@ -80,13 +80,9 @@ test('Throw error when non existent username is provided', async () => {
documentation_url:
'https://developer.github.com/v3/users/#get-a-single-user',
})
try {
await getUserInfo(username)
} catch (error) {
expect(error.message).toEqual(
`Login not found when adding a contributor for username - ${username}.`,
)
}
await expect(getUserInfo(username)).rejects.toThrow(
`Login not found when adding a contributor for username - ${username}.`,
)
})
test('handle github errors', async () => {