ssube/cautious-journey

View on GitHub
test/module/TestRemoteModule.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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);
  });
});