Skip to content

Commit

Permalink
tests: add endpoint test for #3780 (#4067)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright authored and paulmelnikow committed Sep 24, 2019
1 parent c762d97 commit 90f8ffc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions services/endpoint/endpoint.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,11 @@ t.create('Bad scheme')
t.create('Blocked domain')
.get('.json?url=https://img.shields.io/badge/foo-bar-blue.json')
.expectBadge({ label: 'custom badge', message: 'domain is blocked' })

// https://github.com/badges/shields/issues/3780
t.create('Invalid url')
.get('.json?url=https:/')
.expectBadge({
label: 'custom badge',
message: 'invalid query parameter: url',
})

0 comments on commit 90f8ffc

Please sign in to comment.