Skip to content
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

Add [twitter] tests #1394

Merged
merged 3 commits into from
Dec 28, 2017
Merged

Add [twitter] tests #1394

merged 3 commits into from
Dec 28, 2017

Conversation

RedSparr0w
Copy link
Member

@RedSparr0w RedSparr0w commented Dec 26, 2017

Add test for twitter,

Add error handling messages to right hand side of badge: invalid, inaccessible, invalid user

inaccessable | 404 etc
invalid user | no data returned from endpoint
invalid | error thrown
@shields-ci
Copy link

shields-ci commented Dec 26, 2017

Messages
📖

✨ Thanks for your contribution to Shields, @RedSparr0w!

Generated by 🚫 dangerJS

@RedSparr0w
Copy link
Member Author

RedSparr0w commented Dec 28, 2017

Full coverage except for when ?style=social & catch


t.create('URL')
.get('/url/https/shields.io.json')
.expectJSON({ name: 'tweet', value: '' });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a confusing badge URL!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, Don't think it would be a very often used badge,
As it would need to be included as an <object> for the link to actually work.
Otherwise its the same as using https://img.shields.io/:tweet--grey.svg?style=social&logo=twitter

Will be good once we can get #966 implemented to see how often certain badges are being used.

@RedSparr0w RedSparr0w merged commit 3281005 into badges:master Dec 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants