mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
Debugging tests
This commit is contained in:
parent
f6fcf132a4
commit
08eb791566
@ -18,9 +18,6 @@ before_script:
|
||||
- sleep 240
|
||||
|
||||
## Get the docker env variables
|
||||
- docker exec -it gitlab bash -lc 'echo "$PERSONAL_ACCESS_TOKEN"'
|
||||
- docker exec -it gitlab bash -lc 'env'
|
||||
|
||||
- export PERSONAL_ACCESS_TOKEN=$(docker exec -it gitlab bash -lc 'echo "$PERSONAL_ACCESS_TOKEN"')
|
||||
- export GITLAB_URL=$(docker exec -it gitlab bash -lc 'echo "$GITLAB_URL"')
|
||||
|
||||
|
||||
@ -2,7 +2,10 @@ import { Projects } from '../../../src';
|
||||
|
||||
describe('Projects.all', () => {
|
||||
it('should return empty array', async () => {
|
||||
const service = new Projects({ url: process.env.GITLAB_URL, token: process.env.PERSONAL_ACCESS_TOKEN });
|
||||
const c = { url: process.env.GITLAB_URL, token: process.env.PERSONAL_ACCESS_TOKEN };
|
||||
|
||||
console.log(c)
|
||||
const service = new Projects(c);
|
||||
const projects = await service.all();
|
||||
|
||||
expect(projects).toEqual([]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user