Add "resolveLanguages" test
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user