mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
parent
38211bd367
commit
b87fd03489
1 changed files with 3 additions and 7 deletions
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue