1
0
Fork 0

test gitlab factory on remote module

This commit is contained in:
ssube 2021-08-04 22:33:39 -05:00
parent 5544351f24
commit 8f51ce5ed8
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
import { Gitlab } from '@gitbeaker/node';
import { expect } from 'chai';
import { Container } from 'noicejs';
import { RemoteModule } from '../../src/module/RemoteModule';
import { INJECT_GITLAB } from '../../src/remote/gitlab';
describe('remote module', async () => {
it('should create a Gitlab client', async () => {
const module = new RemoteModule();
const container = Container.from(module);
await container.configure();
const client = await container.create(INJECT_GITLAB);
expect(client).to.be.an.instanceOf(Gitlab);
});
});