Skip to content

Commit 68d13d8

Browse files
committed
Fix unit test for buildJson function
1 parent a03023a commit 68d13d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/test/suite/testCoverage.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ suite("Test Coverage Unit Tests", () => {
2929
})
3030

3131
test("buildJson", async () => {
32-
const parsedResult = await buildJson(workspace);
33-
const test = readParameter("idf.includePath");
34-
assert.equal(test, parsedResult);
32+
const result = await buildJson(workspace);
33+
const parsedResult = JSON.parse(JSON.parse(result));
34+
assert.ok(parsedResult.files);
35+
assert.ok(parsedResult["gcovr/format_version"]);
3536
})
3637
});

0 commit comments

Comments
 (0)