mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
85dbe9cc23
commit
de386b8bf9
@ -31,7 +31,7 @@ describe("add custom helm repository in preferences", () => {
|
|||||||
let execFileMock: AsyncFnMock<
|
let execFileMock: AsyncFnMock<
|
||||||
ReturnType<typeof execFileInjectable["instantiate"]>
|
ReturnType<typeof execFileInjectable["instantiate"]>
|
||||||
>;
|
>;
|
||||||
let getActiveHelmRepositoriesMock: AsyncFnMock<() => AsyncResult<HelmRepo[]>>;
|
let getActiveHelmRepositoriesMock: AsyncFnMock<() => Promise<AsyncResult<HelmRepo[]>>>;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
jest.useFakeTimers();
|
jest.useFakeTimers();
|
||||||
|
|||||||
@ -29,7 +29,7 @@ describe("add helm repository from list in preferences", () => {
|
|||||||
let execFileMock: AsyncFnMock<
|
let execFileMock: AsyncFnMock<
|
||||||
ReturnType<typeof execFileInjectable["instantiate"]>
|
ReturnType<typeof execFileInjectable["instantiate"]>
|
||||||
>;
|
>;
|
||||||
let getActiveHelmRepositoriesMock: AsyncFnMock<() => AsyncResult<HelmRepo[]>>;
|
let getActiveHelmRepositoriesMock: AsyncFnMock<() => Promise<AsyncResult<HelmRepo[]>>>;
|
||||||
let callForPublicHelmRepositoriesMock: AsyncFnMock<() => Promise<HelmRepo[]>>;
|
let callForPublicHelmRepositoriesMock: AsyncFnMock<() => Promise<HelmRepo[]>>;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
|||||||
@ -23,7 +23,7 @@ jest.mock("../../renderer/components/tooltip/withTooltip", () => ({
|
|||||||
describe("remove helm repository from list of active repositories in preferences", () => {
|
describe("remove helm repository from list of active repositories in preferences", () => {
|
||||||
let applicationBuilder: ApplicationBuilder;
|
let applicationBuilder: ApplicationBuilder;
|
||||||
let rendered: RenderResult;
|
let rendered: RenderResult;
|
||||||
let getActiveHelmRepositoriesMock: AsyncFnMock<() => AsyncResult<HelmRepo[]>>;
|
let getActiveHelmRepositoriesMock: AsyncFnMock<() => Promise<AsyncResult<HelmRepo[]>>>;
|
||||||
let execFileMock: AsyncFnMock<
|
let execFileMock: AsyncFnMock<
|
||||||
ReturnType<typeof execFileInjectable["instantiate"]>
|
ReturnType<typeof execFileInjectable["instantiate"]>
|
||||||
>;
|
>;
|
||||||
|
|||||||
@ -20,8 +20,8 @@ describe("opening application window using tray", () => {
|
|||||||
let applicationBuilder: ApplicationBuilder;
|
let applicationBuilder: ApplicationBuilder;
|
||||||
let createElectronWindowMock: jest.Mock;
|
let createElectronWindowMock: jest.Mock;
|
||||||
let expectWindowsToBeOpen: (windowIds: string[]) => void;
|
let expectWindowsToBeOpen: (windowIds: string[]) => void;
|
||||||
let callForSplashWindowHtmlMock: AsyncFnMock<() => void>;
|
let callForSplashWindowHtmlMock: AsyncFnMock<() => Promise<void>>;
|
||||||
let callForApplicationWindowHtmlMock: AsyncFnMock<() => void>;
|
let callForApplicationWindowHtmlMock: AsyncFnMock<() => Promise<void>>;
|
||||||
let focusApplicationMock: jest.Mock;
|
let focusApplicationMock: jest.Mock;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
|
|||||||
@ -59,7 +59,7 @@ describe("with-error-suppression", () => {
|
|||||||
|
|
||||||
describe("given decorated async function", () => {
|
describe("given decorated async function", () => {
|
||||||
let decorated: (a: string, b: string) => Promise<number> | Promise<void>;
|
let decorated: (a: string, b: string) => Promise<number> | Promise<void>;
|
||||||
let toBeDecorated: AsyncFnMock<(a: string, b: string) => number>;
|
let toBeDecorated: AsyncFnMock<(a: string, b: string) => Promise<number>>;
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
toBeDecorated = asyncFn();
|
toBeDecorated = asyncFn();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user