mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
* Fixing import clauses * Adding cli integration test * Linting * Updating glob selection * Update tsconfig
15 lines
520 B
TypeScript
15 lines
520 B
TypeScript
const { TEST_ID } = process.env;
|
|
|
|
describe('gitbeaker projects create', () => {
|
|
it('should create a valid project', async () => {
|
|
// eslint-disable-next-line
|
|
const { cli } = require('../../../dist/index');
|
|
const { output } = await cli.parse(
|
|
`gitbeaker projects create --name="CLI Project ${TEST_ID}" --gb-token="${process.env.PERSONAL_ACCESS_TOKEN}" --gb-host="${process.env.GITLAB_URL}"`,
|
|
);
|
|
const data = JSON.parse(output);
|
|
|
|
expect(data.name).toBe(`CLI Project ${TEST_ID}`);
|
|
});
|
|
});
|