fix(core): update
This commit is contained in:
27
test/test.ts
27
test/test.ts
@ -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();
|
||||
|
Reference in New Issue
Block a user