Skip to content

Commit d3c32a8

Browse files
committed
fix test to respect updated logging behaviour
1 parent 2654062 commit d3c32a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/upload-lib.test.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/upload-lib.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ test("accept results with invalid artifactLocation.uri value", (t) => {
320320
const sarifFile = `${__dirname}/../src/testdata/with-invalid-uri.sarif`;
321321
uploadLib.validateSarifFileSchema(sarifFile, mockLogger);
322322

323-
t.deepEqual(loggedMessages.length, 1);
323+
t.deepEqual(loggedMessages.length, 2);
324324
t.deepEqual(
325-
loggedMessages[0],
325+
loggedMessages[1],
326326
"Warning: 'not a valid URI' is not a valid URI in 'instance.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri'.",
327327
);
328328
});

0 commit comments

Comments
 (0)