fix(core): update

This commit is contained in:
2021-05-16 12:16:35 +00:00
parent af5bb4b3b5
commit 580bf9027b
19 changed files with 11822 additions and 345 deletions

View File

@ -1,8 +1,23 @@
import { expect, tap } from 'tapbundle'
import * as glab from '../dist/index'
import { expect, tap } from '@pushrocks/tapbundle'
import * as gitlab from '../ts/index';
tap.test('should trigger a job on GitLab', async () => {
let myGlabTrigger = new glab.GlabTrigger()
})
let testGitlabAccount: gitlab.GitlabAccount;
tap.start()
tap.test('should create an anonymous Gitlab Account', async () => {
testGitlabAccount = gitlab.GitlabAccount.createAnonymousAccount();
expect(testGitlabAccount).to.be.instanceOf(gitlab.GitlabAccount);
});
tap.test('should get the pushrocks group', async () => {
const pushrocksGroup = await testGitlabAccount.getGroupByName('pushrocks');
expect(pushrocksGroup).to.be.instanceOf(gitlab.GitlabGroup);
console.log(pushrocksGroup);
});
tap.test('should get the pushrocks group', async () => {
const pushrocksGroup = await testGitlabAccount.getGroupByName('pushrocks');
expect(pushrocksGroup).to.be.instanceOf(gitlab.GitlabGroup);
await pushrocksGroup.getProjects();
});
tap.start();