2018-07-02 15:20:11 -04:00

14 lines
343 B
JavaScript

import { Projects } from '../../../src';
describe('Projects.all', () => {
it('should return an array', async () => {
const service = new Projects({
url: process.env.GITLAB_URL,
token: process.env.PERSONAL_ACCESS_TOKEN,
});
const projects = await service.all();
expect(projects).toBeInstanceOf(Array);
});
});