Skip to content

Commit

Permalink
fix(repo): test lint (#204)
Browse files Browse the repository at this point in the history
Fixes src/repo/__test__/github.js
  • Loading branch information
simon300000 authored and Berkmann18 committed Sep 2, 2019
1 parent 38211bd commit b87fd03
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/repo/__tests__/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit b87fd03

Please sign in to comment.