Skip to content

Commit

Permalink
test: add type for clock variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Mar 5, 2024
1 parent 2cbf094 commit 93bb576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fetchMock, { type MockMatcherFunction } from "fetch-mock";

import { request } from "@octokit/request";
import { install } from "@sinonjs/fake-timers";
import { install, type InstalledClock } from "@sinonjs/fake-timers";
import { jest } from "@jest/globals";

import { createAppAuth, createOAuthUserAuth } from "../src/index.ts";
Expand Down Expand Up @@ -39,7 +39,7 @@ x//0u+zd/R/QRUzLOw4N72/Hu+UG6MNt5iDZFCtapRaKt6OvSBwy8w==
const BEARER =
"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOi0zMCwiZXhwIjo1NzAsImlzcyI6MX0.q3foRa78U3WegM5PrWLEh5N0bH1SD62OqW66ZYzArp95JBNiCbo8KAlGtiRENCIfBZT9ibDUWy82cI4g3F09mdTq3bD1xLavIfmTksIQCz5EymTWR5v6gL14LSmQdWY9lSqkgUG0XCFljWUglEP39H4yeHbFgdjvAYg3ifDS12z9oQz2ACdSpvxPiTuCC804HkPVw8Qoy0OSXvCkFU70l7VXCVUxnuhHnk8-oCGcKUspmeP6UdDnXk-Aus-eGwDfJbU2WritxxaXw6B4a3flTPojkYLSkPBr6Pi0H2-mBsW_Nvs0aLPVLKobQd4gqTkosX3967DoAG8luUMhrnxe8Q";

let clock: any;
let clock: InstalledClock;
beforeEach(() => {
clock = install({ now: 0, toFake: ["Date", "setTimeout"] });
});
Expand Down

0 comments on commit 93bb576

Please sign in to comment.