Try using a separate test query

This commit is contained in:
shati-patel
2021-09-02 11:59:07 +01:00
committed by Shati Patel
parent 6f16192865
commit cdd6738748
3 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
import javascript
select 1

View File

@@ -1,5 +1,3 @@
import javascript
predicate edges(int i, int j) {
i = 1 and j = 2 or i = 2 and j = 3
}

View File

@@ -64,7 +64,7 @@ describe('Use cli', function() {
it('should resolve query by language', async function() {
skipIfNoCodeQL(this);
const queryPath = path.join(__dirname, 'data', 'simple-query.ql');
const queryPath = path.join(__dirname, 'data', 'simple-javascript-query.ql');
const queryInfo: QueryInfoByLanguage = await cli.resolveQueryByLanguage(getOnDiskWorkspaceFolders(), Uri.file(queryPath));
expect((Object.keys(queryInfo.byLanguage))[0]).to.eql('javascript');
});