1
0
Fork 0
cautious-journey/test/module/TestRemoteModule.ts

18 lines
564 B
TypeScript

import { Gitlab } from '@gitbeaker/node';
import { expect } from 'chai';
import { Container } from 'noicejs';
import { RemoteModule } from '../../src/module/RemoteModule.js';
import { INJECT_GITLAB } from '../../src/remote/gitlab.js';
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);
});
});