UNPKG

763 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var chai_1 = require("chai");
4var _1 = require(".");
5describe('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//# sourceMappingURL=file.test.js.map
\No newline at end of file