mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Simplify typing of async mock
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
parent
9cef2f27aa
commit
fadcadc5b3
@ -28,7 +28,7 @@ import type { ConfigurableDependencyInjectionContainer } from "@ogre-tools/injec
|
||||
import type { KubeObjectMenuRegistration } from "../../../extensions/registries";
|
||||
import { KubeObjectMenuRegistry } from "../../../extensions/registries";
|
||||
import { ConfirmDialog } from "../confirm-dialog";
|
||||
import asyncFn from "@async-fn/jest";
|
||||
import asyncFn, { AsyncFnMock } from "@async-fn/jest";
|
||||
import { getDiForUnitTesting } from "../getDiForUnitTesting";
|
||||
|
||||
import { Inject } from "@ogre-tools/injectable-react";
|
||||
@ -156,7 +156,7 @@ describe("kube-object-menu", () => {
|
||||
|
||||
describe("given kube object", () => {
|
||||
let baseElement: Element;
|
||||
let removeActionMock: ReturnType<typeof asyncFn>;
|
||||
let removeActionMock: AsyncFnMock<Function>;
|
||||
|
||||
beforeEach(async () => {
|
||||
objectStub = KubeObject.create({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user