mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
- Exports all types - Clean up type duplicates - Remove Project,User and Group Bundles - Fix typing on the Gitlab Export - Clean up README.md
27 lines
698 B
TypeScript
27 lines
698 B
TypeScript
import { EpicNotes } from '../../../src';
|
|
|
|
jest.mock(
|
|
'../../../src/infrastructure/RequestHelper',
|
|
() => require('../../__mocks__/RequestHelper').default,
|
|
);
|
|
|
|
let service: EpicNotes;
|
|
|
|
beforeEach(() => {
|
|
service = new EpicNotes({
|
|
requesterFn: jest.fn(),
|
|
token: 'abcdefg',
|
|
requestTimeout: 3000,
|
|
});
|
|
});
|
|
|
|
describe('Instantiating EpicNotes service', () => {
|
|
it('should create a valid service object', () => {
|
|
expect(service).toBeInstanceOf(EpicNotes);
|
|
expect(service.url).toBeDefined();
|
|
expect(service.rejectUnauthorized).toBeTruthy();
|
|
expect(service.headers).toMatchObject({ 'private-token': 'abcdefg' });
|
|
expect(service.requestTimeout).toBe(3000);
|
|
});
|
|
});
|