Skip to content

Commit

Permalink
Added unit test for GitHub repository size
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Oct 13, 2017
1 parent d6ea8e2 commit 21586cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions service-tests/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,3 +446,10 @@ t.create('code size in bytes for all languages')
name: Joi.equal('code size'),
value: isFileSize,
}));

t.create('repository size')
.get('/repo-size/badges/shields.json')
.expectJSONTypes(Joi.object().keys({
name: Joi.equal('repo size'),
value: isFileSize,
}));

0 comments on commit 21586cf

Please sign in to comment.