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 giteaClient: GiteaClient;
|
let giteaClient: GiteaClient;
|
||||||
|
|
||||||
tap.test('should create a GiteaClient instance', async () => {
|
tap.test('should create a GiteaClient instance', async () => {
|
||||||
const baseUrl = testQenv.getEnvVarOnDemand('GITEA_BASE_URL') || 'https://gitea.lossless.digital';
|
const baseUrl = (await testQenv.getEnvVarOnDemand('GITEA_BASE_URL')) || 'https://gitea.lossless.digital';
|
||||||
const token = testQenv.getEnvVarOnDemand('GITEA_TOKEN') || '';
|
const token = (await testQenv.getEnvVarOnDemand('GITEA_TOKEN')) || '';
|
||||||
giteaClient = new GiteaClient(baseUrl, token);
|
giteaClient = new GiteaClient(baseUrl, token);
|
||||||
expect(giteaClient).toBeInstanceOf(GiteaClient);
|
expect(giteaClient).toBeInstanceOf(GiteaClient);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user