Skip the SARIF notification object workaround for fixed CLIs

This commit is contained in:
Henry Mercer 2023-04-04 16:46:45 +01:00
parent ae0109a777
commit 3bba073180
11 changed files with 73 additions and 26 deletions

View file

@ -441,7 +441,11 @@ test("fixInvalidNotifications leaves notifications with unique locations alone",
getRecordingLogger(messages)
);
t.deepEqual(result, createMockSarifWithNotification([stubLocation]));
t.is(messages.length, 0);
t.is(messages.length, 1);
t.deepEqual(messages[0], {
type: "debug",
message: "No duplicate locations found in SARIF notification objects.",
});
});
test("fixInvalidNotifications removes duplicate locations", (t) => {