From 0a86f9a3949c515208169af78c37b0c29dc73b08 Mon Sep 17 00:00:00 2001 From: Antonio Gamez Diaz Date: Fri, 9 Feb 2024 16:38:26 +0100 Subject: [PATCH] Fix ts issue in test file Signed-off-by: Antonio Gamez Diaz --- dashboard/src/components/PackageHeader/PackageView.test.tsx | 2 +- dashboard/src/reducers/availablepackages.test.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard/src/components/PackageHeader/PackageView.test.tsx b/dashboard/src/components/PackageHeader/PackageView.test.tsx index e031e84a2c4..16a1a36ce88 100644 --- a/dashboard/src/components/PackageHeader/PackageView.test.tsx +++ b/dashboard/src/components/PackageHeader/PackageView.test.tsx @@ -25,7 +25,7 @@ const defaultProps = { isFetching: false, namespace: "test", cluster: "default", - selected: { versions: [] } as IPackageState["selected"], + selected: { versions: [], metadatas: [] } as IPackageState["selected"], version: undefined, kubeappsNamespace: "kubeapps", id: "test", diff --git a/dashboard/src/reducers/availablepackages.test.ts b/dashboard/src/reducers/availablepackages.test.ts index f7d56aa6eb6..fee97ab3e6a 100644 --- a/dashboard/src/reducers/availablepackages.test.ts +++ b/dashboard/src/reducers/availablepackages.test.ts @@ -57,6 +57,7 @@ describe("packageReducer", () => { categories: [], selected: { versions: [], + metadatas: [], }, nextPageToken: "", size: 20,