diff --git a/src/common/__tests__/cluster-store.test.ts b/src/common/__tests__/cluster-store.test.ts index d1d2f76603..1183454d7b 100644 --- a/src/common/__tests__/cluster-store.test.ts +++ b/src/common/__tests__/cluster-store.test.ts @@ -99,7 +99,7 @@ describe("empty config", () => { it("removes cluster from store", async () => { await clusterStore.removeById("foo"); - expect(clusterStore.getById("foo")).toBeUndefined(); + expect(clusterStore.getById("foo")).toBeNull(); }); it("sets active cluster", () => { @@ -248,7 +248,7 @@ describe("config with existing clusters", () => { expect(storedCluster).toBeTruthy(); const storedCluster2 = clusterStore.getById("cluster2"); - expect(storedCluster2).toBeUndefined(); + expect(storedCluster2).toBeNull(); }); it("allows getting all of the clusters", async () => {