From b953022c4773fd0f6f88944b4d5469166877cc96 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 28 Apr 2021 14:11:27 -0400 Subject: [PATCH] fix unit tests Signed-off-by: Sebastian Malton --- .../__tests__/catalog-entity-registry.test.ts | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/renderer/api/__tests__/catalog-entity-registry.test.ts b/src/renderer/api/__tests__/catalog-entity-registry.test.ts index e7c14f587c..23720ec967 100644 --- a/src/renderer/api/__tests__/catalog-entity-registry.test.ts +++ b/src/renderer/api/__tests__/catalog-entity-registry.test.ts @@ -43,27 +43,6 @@ describe("CatalogEntityRegistry", () => { expect(catalog.items.length).toEqual(2); }); - it("ignores unknown items", () => { - const catalog = new CatalogEntityRegistry(catalogCategoryRegistry); - const items = [{ - apiVersion: "entity.k8slens.dev/v1alpha1", - kind: "FooBar", - metadata: { - uid: "123", - name: "foobar", - source: "test", - labels: {} - }, - status: { - phase: "disconnected" - }, - spec: {} - }]; - - catalog.updateItems(items); - expect(catalog.items.length).toEqual(0); - }); - it("updates existing items", () => { const catalog = new CatalogEntityRegistry(catalogCategoryRegistry); const items = [{