mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-24 21:46: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:
|
documentation_url:
|
||||||
'https://developer.github.com/v3/users/#get-a-single-user',
|
'https://developer.github.com/v3/users/#get-a-single-user',
|
||||||
})
|
})
|
||||||
try {
|
await expect(getUserInfo(username)).rejects.toThrow(
|
||||||
await getUserInfo(username)
|
`Login not found when adding a contributor for username - ${username}.`,
|
||||||
} catch (error) {
|
)
|
||||||
expect(error.message).toEqual(
|
|
||||||
`Login not found when adding a contributor for username - ${username}.`,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test('handle github errors', async () => {
|
test('handle github errors', async () => {
|
||||||
|
|
Loading…
Reference in a new issue