Skip to content

Commit 8151739

Browse files
committed
Update syntax
1 parent 72fc53b commit 8151739

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

extensions/ql-vscode/src/vscode-tests/cli-integration/run-cli.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ describe('Use cli', function() {
5656
it('should resolve languages', async function() {
5757
skipIfNoCodeQL(this);
5858
const languages = await cli.resolveLanguages();
59-
// should have a bunch of languages. just check that a few known ones exist
60-
expect(languages['cpp']).not.to.be.undefined;
61-
expect(languages['csharp']).not.to.be.undefined;
62-
expect(languages['java']).not.to.be.undefined;
63-
expect(languages['javascript']).not.to.be.undefined;
64-
expect(languages['python']).not.to.be.undefined;
59+
for (const expectedLanguage of ['cpp', 'csharp', 'go', 'java', 'javascript', 'python']) {
60+
expect(languages).to.have.property(expectedLanguage).that.is.not.undefined;
61+
}
6562
});
6663
});

0 commit comments

Comments
 (0)