Skip to content

Commit b105596

Browse files
committed
test: fix the gcovr version tests
1 parent 9303e93 commit b105596

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/__tests__/main.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ describe("getVersion", () => {
5555
it("gcovr", () => {
5656
expect(getVersion("gcovr", "5.0")).toBe("5.0")
5757
if (process.platform === "linux") {
58-
expect(getVersion("gcovr", "true", [22, 4])).toBe("5.2")
59-
expect(getVersion("gcovr", "true", [20, 4])).toBe("5.2")
60-
expect(getVersion("gcovr", "true", [18, 4])).toBe("5.0")
58+
expect(getVersion("gcovr", "true", [22, 4])).toBe(DefaultLinuxVersion.gcovr![22])
59+
expect(getVersion("gcovr", "true", [20, 4])).toBe(DefaultLinuxVersion.gcovr![20])
60+
expect(getVersion("gcovr", "true", [18, 4])).toBe(DefaultLinuxVersion.gcovr![18])
6161
}
6262
})
6363

6464
it("llvm", () => {
6565
expect(getVersion("llvm", "13.0.0")).toBe("13.0.0")
6666
if (process.platform === "linux") {
67-
expect(getVersion("llvm", "true", [20, 4])).toBe(DefaultLinuxVersion["llvm"]![20])
68-
expect(getVersion("llvm", "true", [18, 4])).toBe(DefaultLinuxVersion["llvm"]![18])
69-
expect(getVersion("llvm", "true", [16, 4])).toBe(DefaultLinuxVersion["llvm"]![16])
67+
expect(getVersion("llvm", "true", [20, 4])).toBe(DefaultLinuxVersion.llvm![20])
68+
expect(getVersion("llvm", "true", [18, 4])).toBe(DefaultLinuxVersion.llvm![18])
69+
expect(getVersion("llvm", "true", [16, 4])).toBe(DefaultLinuxVersion.llvm![16])
7070
}
7171
})
7272
})

0 commit comments

Comments
 (0)