Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers committed Nov 19, 2024
1 parent e900979 commit 8de8eb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/exchangeAuthCode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ describe("exchangeAuthCode", () => {
domain: "http://test.kinde.com",
clientId: "test",
redirectURL: "http://test.kinde.com",
autoReferesh: true,
autoRefresh: true,
});

expect(refreshTokenTimer.setRefreshTimer).toHaveBeenCalledOnce();
Expand Down
1 change: 1 addition & 0 deletions lib/utils/refreshTimer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe("refreshTimer", () => {
it("should throw error when window is undefined", () => {
const originalWindow = global.window;
// Temporarily delete the window object
//@ts-ignore

Check failure on line 27 in lib/utils/refreshTimer.test.ts

View workflow job for this annotation

GitHub Actions / main (20.x)

Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free
delete global.window;

const callback = vi.fn();
Expand Down

0 comments on commit 8de8eb3

Please sign in to comment.