File tree Expand file tree Collapse file tree
extensions/ql-vscode/test/vscode-tests/no-workspace/contextual Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { CodeQLCliServer } from "../../../../src/cli";
55import { Uri } from "vscode" ;
66import { QueryOutputDir } from "../../../../src/run-queries-shared" ;
77import { mockDatabaseItem , mockedObject } from "../../utils/mocking.helpers" ;
8+ import path from "path" ;
89
910/**
1011 *
@@ -52,19 +53,12 @@ describe("AstBuilder", () => {
5253 const astBuilder = createAstBuilder ( ) ;
5354 const roots = await astBuilder . getRoots ( ) ;
5455
56+ const bqrsPath = path . normalize ( "/a/b/c/results.bqrs" ) ;
5557 const options = { entities : [ "id" , "url" , "string" ] } ;
58+ expect ( mockCli . bqrsDecode ) . toBeCalledWith ( bqrsPath , "nodes" , options ) ;
59+ expect ( mockCli . bqrsDecode ) . toBeCalledWith ( bqrsPath , "edges" , options ) ;
5660 expect ( mockCli . bqrsDecode ) . toBeCalledWith (
57- "/a/b/c/results.bqrs" ,
58- "nodes" ,
59- options ,
60- ) ;
61- expect ( mockCli . bqrsDecode ) . toBeCalledWith (
62- "/a/b/c/results.bqrs" ,
63- "edges" ,
64- options ,
65- ) ;
66- expect ( mockCli . bqrsDecode ) . toBeCalledWith (
67- "/a/b/c/results.bqrs" ,
61+ bqrsPath ,
6862 "graphProperties" ,
6963 options ,
7064 ) ;
You can’t perform that action at this time.
0 commit comments