Debugging tests

This commit is contained in:
Justin 2018-05-20 15:28:09 -04:00
parent f6fcf132a4
commit 08eb791566
2 changed files with 4 additions and 4 deletions

View File

@ -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"')

View File

@ -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([]);