1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var chai_1 = require("chai");
|
4 | var _1 = require(".");
|
5 | describe('github/file', function () {
|
6 | it('throws if a token is not given', function () {
|
7 | var fn = function () { return _1.github({ token: '', repo: 'phil/foo' }); };
|
8 | chai_1.expect(fn).to.throw();
|
9 | });
|
10 | it('throws if a repo is not given', function () {
|
11 | var fn = function () { return _1.github({ token: 'token', repo: '' }); };
|
12 | chai_1.expect(fn).to.throw();
|
13 | });
|
14 | it('throws if a owner is not given', function () {
|
15 | var fn = function () { return _1.github({ token: 'token', repo: 'foo' }); };
|
16 | chai_1.expect(fn).to.throw();
|
17 | });
|
18 | });
|
19 |
|
\ | No newline at end of file |