Compare commits

...

1 Commits

Author SHA1 Message Date
nickfyson
bc5263b2b5 wip update 2024-03-28 12:47:39 +00:00
3 changed files with 3 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ ava_1.default.beforeEach(() => {
const sarifFile = `${__dirname}/../src/testdata/with-invalid-uri.sarif`;
uploadLib.validateSarifFileSchema(sarifFile, mockLogger);
t.deepEqual(loggedMessages.length, 1);
t.deepEqual(loggedMessages[0], "Warning: 'not a valid URI' is not a valid URI in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'.");
t.deepEqual(loggedMessages[0], "Warning: 'not a valid URI' is not a valid UR in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'.");
});
function createMockSarif(id, tool) {
return {

File diff suppressed because one or more lines are too long

View File

@@ -320,7 +320,7 @@ test("accept results with invalid artifactLocation.uri value", (t) => {
t.deepEqual(loggedMessages.length, 1);
t.deepEqual(
loggedMessages[0],
"Warning: 'not a valid URI' is not a valid URI in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'.",
"Warning: 'not a valid URI' is not a valid UR in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'.",
);
});