Skip to content

Commit c9038f5

Browse files
Add awaits
1 parent c36fa0f commit c9038f5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/ql-vscode/test/pure-tests/variant-analysis.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ describe('isVariantAnalysisComplete', async () => {
2828
describe('when scanned repos is undefined', async () => {
2929
it('should say the variant analysis is not complete', async () => {
3030
variantAnalysis.scannedRepos = undefined;
31-
expect(isVariantAnalysisComplete(variantAnalysis, uncallableArtifactDownloadChecker)).to.equal(false);
31+
expect(await isVariantAnalysisComplete(variantAnalysis, uncallableArtifactDownloadChecker)).to.equal(false);
3232
});
3333
});
3434

3535
describe('when scanned repos is non-empty', async () => {
3636
describe('when not all results are downloaded', async () => {
3737
it('should say the variant analysis is not complete', async () => {
38-
expect(isVariantAnalysisComplete(variantAnalysis, async () => false)).to.equal(false);
38+
expect(await isVariantAnalysisComplete(variantAnalysis, async () => false)).to.equal(false);
3939
});
4040
});
4141

4242
describe('when all results are downloaded', async () => {
4343
it('should say the variant analysis is complete', async () => {
44-
expect(isVariantAnalysisComplete(variantAnalysis, async () => true)).to.equal(true);
44+
expect(await isVariantAnalysisComplete(variantAnalysis, async () => true)).to.equal(true);
4545
});
4646
});
4747
});
@@ -60,27 +60,27 @@ describe('isVariantAnalysisComplete', async () => {
6060
describe('when scanned repos is undefined', async () => {
6161
it('should say the variant analysis is complete', async () => {
6262
variantAnalysis.scannedRepos = undefined;
63-
expect(isVariantAnalysisComplete(variantAnalysis, uncallableArtifactDownloadChecker)).to.equal(true);
63+
expect(await isVariantAnalysisComplete(variantAnalysis, uncallableArtifactDownloadChecker)).to.equal(true);
6464
});
6565
});
6666

6767
describe('when scanned repos is empty', async () => {
6868
it('should say the variant analysis is complete', async () => {
6969
variantAnalysis.scannedRepos = [];
70-
expect(isVariantAnalysisComplete(variantAnalysis, uncallableArtifactDownloadChecker)).to.equal(true);
70+
expect(await isVariantAnalysisComplete(variantAnalysis, uncallableArtifactDownloadChecker)).to.equal(true);
7171
});
7272
});
7373

7474
describe('when scanned repos is non-empty', async () => {
7575
describe('when not all results are downloaded', async () => {
7676
it('should say the variant analysis is not complete', async () => {
77-
expect(isVariantAnalysisComplete(variantAnalysis, async () => false)).to.equal(false);
77+
expect(await isVariantAnalysisComplete(variantAnalysis, async () => false)).to.equal(false);
7878
});
7979
});
8080

8181
describe('when all results are downloaded', async () => {
8282
it('should say the variant analysis is complete', async () => {
83-
expect(isVariantAnalysisComplete(variantAnalysis, async () => true)).to.equal(true);
83+
expect(await isVariantAnalysisComplete(variantAnalysis, async () => true)).to.equal(true);
8484
});
8585
});
8686
});

0 commit comments

Comments
 (0)