From 59aa91d40b7b41df094a8dfae25337769277a6bf Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 9 Sep 2020 16:11:42 -0400 Subject: [PATCH] fix tests Signed-off-by: Sebastian Malton --- src/common/cluster-store_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/cluster-store_test.ts b/src/common/cluster-store_test.ts index 5b8707de4a..2810883690 100644 --- a/src/common/cluster-store_test.ts +++ b/src/common/cluster-store_test.ts @@ -33,7 +33,7 @@ describe("empty config", () => { id: "foo", preferences: { terminalCWD: "/tmp", - icon: "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAA1wAAAKoCAYAAABjkf5", + icon: "data:;base64,iVBORw0KGgoAAAANSUhEUgAAA1wAAAKoCAYAAABjkf5", clusterName: "minikube" }, kubeConfigPath: ClusterStore.embedCustomKubeConfig("foo", "fancy foo config"), @@ -285,7 +285,7 @@ describe("pre 2.6.0 config with a cluster icon", () => { const storedClusterData = clusterStore.clustersList[0]; expect(storedClusterData.hasOwnProperty('icon')).toBe(false); expect(storedClusterData.preferences.hasOwnProperty('icon')).toBe(true); - expect(storedClusterData.preferences.icon.startsWith("data:image/jpeg;base64,")).toBe(true); + expect(storedClusterData.preferences.icon.startsWith("data:;base64,")).toBe(true); }) }) @@ -364,6 +364,6 @@ describe("pre 3.6.0-beta.1 config with an existing cluster", () => { it("migrates to modern format with icon not in file", async () => { const { icon } = clusterStore.clustersList[0].preferences; - expect(icon.startsWith("data:image/jpeg;base64,")).toBe(true); + expect(icon.startsWith("data:;base64,")).toBe(true); }) })