Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardopirovano committed Jul 27, 2021
1 parent ddd2696 commit a81500c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/util.test.js.map

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

4 changes: 2 additions & 2 deletions src/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ test("getGitHubVersion", async (t) => {

test("getGitHubAuth", async (t) => {
const msgs: string[] = [];
const mockLogger = ({
const mockLogger = {
warning: (msg: string) => msgs.push(msg),
} as unknown) as Logger;
} as unknown as Logger;

// eslint-disable-next-line @typescript-eslint/no-floating-promises
t.throwsAsync(async () => util.getGitHubAuth(mockLogger, "abc", true));
Expand Down

0 comments on commit a81500c

Please sign in to comment.