Skip to content

Commit b358f11

Browse files
author
Dave Bartolomeo
committed
Fix integration tests on Windows
1 parent fb7a0c8 commit b358f11

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

extensions/ql-vscode/test/vscode-tests/no-workspace/contextual/astBuilder.test.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { CodeQLCliServer } from "../../../../src/cli";
55
import { Uri } from "vscode";
66
import { QueryOutputDir } from "../../../../src/run-queries-shared";
77
import { 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
);

0 commit comments

Comments
 (0)