Fix external api usage query tests by mocking all CodeQL calls
This commit is contained in:
Родитель
b501a04074
Коммит
bfa7ea1be6
|
@ -105,7 +105,17 @@ describe("runModelEditorQueries", () => {
|
|||
"/a/b/c/qlpack2.yml",
|
||||
]),
|
||||
bqrsInfo: jest.fn().mockResolvedValue({
|
||||
"result-sets": [],
|
||||
"result-sets": [
|
||||
{
|
||||
name: "results",
|
||||
rows: 45,
|
||||
columns: [],
|
||||
},
|
||||
],
|
||||
}),
|
||||
bqrsDecode: jest.fn().mockResolvedValue({
|
||||
tuples: [],
|
||||
columns: [],
|
||||
}),
|
||||
}),
|
||||
queryRunner: mockedObject<QueryRunner>({
|
||||
|
|
Загрузка…
Ссылка в новой задаче