fix(test): await async getEnvVarOnDemand calls in test setup
This commit is contained in:
@@ -7,8 +7,8 @@ const testQenv = new qenv.Qenv('./', '.nogit/');
|
|||||||
let gitlabClient: GitLabClient;
|
let gitlabClient: GitLabClient;
|
||||||
|
|
||||||
tap.test('should create a GitLabClient instance', async () => {
|
tap.test('should create a GitLabClient instance', async () => {
|
||||||
const baseUrl = testQenv.getEnvVarOnDemand('GITLAB_BASE_URL') || 'https://gitlab.com';
|
const baseUrl = (await testQenv.getEnvVarOnDemand('GITLAB_BASE_URL')) || 'https://gitlab.com';
|
||||||
const token = testQenv.getEnvVarOnDemand('GITLAB_TOKEN') || '';
|
const token = (await testQenv.getEnvVarOnDemand('GITLAB_TOKEN')) || '';
|
||||||
gitlabClient = new GitLabClient(baseUrl, token);
|
gitlabClient = new GitLabClient(baseUrl, token);
|
||||||
expect(gitlabClient).toBeInstanceOf(GitLabClient);
|
expect(gitlabClient).toBeInstanceOf(GitLabClient);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user