-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix [github] service tests #9425
Conversation
@@ -247,7 +247,7 @@ export default class GithubDownloads extends GithubAuthV3Service { | |||
} | |||
|
|||
if (releases.length === 0) { | |||
throw new NotFound({ prettyMessage: 'no releases' }) | |||
throw new NotFound({ prettyMessage: 'no releases found' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue here is that fetchLatestRelease()
(which we also call in this service) throws "no releases found". I've brought the message for both services into line.
@@ -8,4 +8,4 @@ t.create('hit counter') | |||
|
|||
t.create('hit counter for nonexistent repo') | |||
.get('/badges/puppets/async%20handle.json') | |||
.expectBadge({ label: 'counter', message: 'repo not found' }) | |||
.expectBadge({ label: 'async handle counter', message: '0' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This query no longer throws a 404 for repo doesn't exist - it just says zero results
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this is unfortunate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating these!
No description provided.