Skip the SARIF notification object workaround for fixed CLIs
This commit is contained in:
parent
ae0109a777
commit
3bba073180
11 changed files with 73 additions and 26 deletions
6
lib/util.test.js
generated
6
lib/util.test.js
generated
|
|
@ -363,7 +363,11 @@ const stubLocation = {
|
|||
const messages = [];
|
||||
const result = util.fixInvalidNotifications(createMockSarifWithNotification([stubLocation]), (0, testing_utils_1.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.",
|
||||
});
|
||||
});
|
||||
(0, ava_1.default)("fixInvalidNotifications removes duplicate locations", (t) => {
|
||||
const messages = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue