refactor(aio): add assertNotMissingOrEmpty() helper

This commit is contained in:
Georgios Kalpakas
2017-02-27 21:04:43 +02:00
committed by Chuck Jazdzewski
parent c8d87a936b
commit c5644e5a0d
8 changed files with 39 additions and 20 deletions

View File

@ -13,8 +13,8 @@ describe('GithubApi', () => {
describe('constructor()', () => {
it('should throw if \'repoSlug\' is not defined', () => {
expect(() => new GithubApi('', '12345')).toThrowError('Missing required parameter \'repoSlug\'!');
it('should throw if \'repoSlug\' is missing or empty', () => {
expect(() => new GithubApi('', '12345')).toThrowError('Missing or empty required parameter \'repoSlug\'!');
});