Skip to content

Commit

Permalink
Print database diagnostics args if unit test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Mar 20, 2023
1 parent 9e6750d commit 1954584
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/init-action-post-helper.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action-post-helper.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/init-action-post-helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ async function testFailedSarifUpload(
config.dbLocation,
sinon.match.string,
category
)
),
`Actual args were: ${databaseExportDiagnosticsStub.args}`
);
} else {
t.true(
Expand Down

0 comments on commit 1954584

Please sign in to comment.