Add "resolveLanguages" test

This commit is contained in:
shati-patel
2021-08-31 11:10:12 +01:00
committed by Shati Patel
parent 3e6ee01c4e
commit 72fc53ba9c

View File

@@ -52,4 +52,15 @@ describe('Use cli', function() {
expect(qlpacks['codeql-javascript']).not.to.be.undefined;
expect(qlpacks['codeql-python']).not.to.be.undefined;
});
it('should resolve languages', async function() {
skipIfNoCodeQL(this);
const languages = await cli.resolveLanguages();
// should have a bunch of languages. just check that a few known ones exist
expect(languages['cpp']).not.to.be.undefined;
expect(languages['csharp']).not.to.be.undefined;
expect(languages['java']).not.to.be.undefined;
expect(languages['javascript']).not.to.be.undefined;
expect(languages['python']).not.to.be.undefined;
});
});