-
Notifications
You must be signed in to change notification settings - Fork 134
/
Copy pathrepo.test.ts
40 lines (35 loc) · 1.07 KB
/
repo.test.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { GithubApi } from './github';
import { GogsApi } from './gogs';
import { GitlabApi } from './gitlab';
import { BitbucketApi } from './bitbucket';
import { GiteaApi } from './gitea';
describe('GithubApi', () => {
it('should load config', () => {
const github = new GithubApi('', "token");
expect(github).toBeTruthy();
});
});
describe('GogsApi', () => {
it('should load config', () => {
const gogs = new GogsApi("http://localhost:3000", "token");
expect(gogs).toBeTruthy();
});
});
describe('GitlabApi', () => {
it('should load config', () => {
const gitlab = new GitlabApi("https://gitlab.com", "token");
expect(gitlab).toBeTruthy();
});
});
describe('GiteaApi', () => {
it('should load config', () => {
const gitea = new GiteaApi("https://codeberg.org", "token");
expect(gitea).toBeTruthy();
});
});
describe('Bitbucket', () => {
it('should load config', () => {
const bitbucket = new BitbucketApi("username", "password");
expect(bitbucket).toBeTruthy();
});
});