Skip to content

Commit

Permalink
[Github] test small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
webcaetano committed Apr 30, 2017
1 parent 6cbc29d commit 312ca3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions service-tests/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ t.create('Contributors')
.get('/contributors/cdnjs/cdnjs.json')
.expectJSONTypes(Joi.object().keys({
name: Joi.equal('contributors'),
value: Joi.number().integer().positive()
value: Joi.string().regex(/^\w+$/)
}));

t.create('GitHub closed pull request')
Expand Down Expand Up @@ -48,14 +48,14 @@ t.create('GitHub pull request raw')
value: Joi.string().regex(/^\w+?$/)
}));

t.create('GitHub pull request')
t.create('GitHub closed issues')
.get('/issues-closed/badges/shields.json')
.expectJSONTypes(Joi.object().keys({
name: Joi.equal('closed issues'),
value: Joi.string().regex(/^\w+\+?\sclosed$/)
}));

t.create('GitHub pull request raw')
t.create('GitHub closed issues raw')
.get('/issues-closed-raw/badges/shields.json')
.expectJSONTypes(Joi.object().keys({
name: Joi.equal('closed issues'),
Expand Down

0 comments on commit 312ca3b

Please sign in to comment.