diff --git a/test/test.node.ts b/test/test.node.ts index 0458095..8f53a1a 100644 --- a/test/test.node.ts +++ b/test/test.node.ts @@ -7,8 +7,8 @@ const testQenv = new qenv.Qenv('./', '.nogit/'); let gitlabClient: GitLabClient; tap.test('should create a GitLabClient instance', async () => { - const baseUrl = testQenv.getEnvVarOnDemand('GITLAB_BASE_URL') || 'https://gitlab.com'; - const token = testQenv.getEnvVarOnDemand('GITLAB_TOKEN') || ''; + const baseUrl = (await testQenv.getEnvVarOnDemand('GITLAB_BASE_URL')) || 'https://gitlab.com'; + const token = (await testQenv.getEnvVarOnDemand('GITLAB_TOKEN')) || ''; gitlabClient = new GitLabClient(baseUrl, token); expect(gitlabClient).toBeInstanceOf(GitLabClient); });