1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Improving typing of mock

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2021-11-09 13:59:56 +02:00
parent fbabb32dab
commit 78e1c6357b
3 changed files with 6 additions and 6 deletions

View File

@ -260,7 +260,7 @@
"ws": "^7.5.5"
},
"devDependencies": {
"@async-fn/jest": "^1.4.2",
"@async-fn/jest": "^1.4.3",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.2",
"@material-ui/lab": "^4.0.0-alpha.60",

View File

@ -116,7 +116,7 @@ describe("kube-object-menu", () => {
describe("given kube object", () => {
let baseElement: Element;
let removeActionMock: any;
let removeActionMock: ReturnType<typeof asyncFn>;
beforeEach(async () => {
objectStub = KubeObject.create({

View File

@ -7,10 +7,10 @@
resolved "https://registry.yarnpkg.com/7zip-bin/-/7zip-bin-5.1.1.tgz#9274ec7460652f9c632c59addf24efb1684ef876"
integrity sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==
"@async-fn/jest@^1.4.2":
version "1.4.2"
resolved "https://registry.yarnpkg.com/@async-fn/jest/-/jest-1.4.2.tgz#61b3e35aa1e7398675915b0c6f4967f0c26e0488"
integrity sha512-1o34++KnmxnW510+WNlEFjEIZHBhDWnxVmIs97z4z/3nyTLxSw7mz7tF2bhTdiPH0ahJlGpdaWzwqlBJopM06Q==
"@async-fn/jest@^1.4.3":
version "1.4.3"
resolved "https://registry.yarnpkg.com/@async-fn/jest/-/jest-1.4.3.tgz#0face4d639339c84f57aeae16575e03137af394f"
integrity sha512-Aft4dLjDFlR7ddBQB/PJisCMy/145gNh+Rnt4wE0QBjxDSG9i3VHzP4MYpfFifBI5Ja5JRsHInX1jn+wMf2Gzw==
"@babel/code-frame@7.12.11":
version "7.12.11"