Try using a separate test query
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
import javascript
|
||||||
|
|
||||||
|
select 1
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
import javascript
|
|
||||||
|
|
||||||
predicate edges(int i, int j) {
|
predicate edges(int i, int j) {
|
||||||
i = 1 and j = 2 or i = 2 and j = 3
|
i = 1 and j = 2 or i = 2 and j = 3
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ describe('Use cli', function() {
|
|||||||
|
|
||||||
it('should resolve query by language', async function() {
|
it('should resolve query by language', async function() {
|
||||||
skipIfNoCodeQL(this);
|
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));
|
const queryInfo: QueryInfoByLanguage = await cli.resolveQueryByLanguage(getOnDiskWorkspaceFolders(), Uri.file(queryPath));
|
||||||
expect((Object.keys(queryInfo.byLanguage))[0]).to.eql('javascript');
|
expect((Object.keys(queryInfo.byLanguage))[0]).to.eql('javascript');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user