Skip to content

Commit

Permalink
test(main): adds an integration test for that fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sverweij committed Apr 1, 2024
1 parent d4325d8 commit 2e6618e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/main/main.format.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,14 @@ describe("[E] main.format - format", () => {
// without includeOnly it'd be 53
equal(lJSONResult.modules.length, 33);
});

it("uses the 'dot' reporter section for the 'x-dot-webpage' output type", async () => {
const lResult = await format(cruiseResult, {
outputType: "x-dot-webpage",
});
ok(lResult.output.includes("<html"));
// the color ffcccc doesn't occur in the default dot theme, but it does
// occur in the one we have in the cruiseResult
ok(lResult.output.includes('fill="#ffcccc"'));
});
});

0 comments on commit 2e6618e

Please sign in to comment.