From 419768feae2ed7f66e871ffea77452031d818cf2 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 22 Oct 2024 14:18:41 +0200 Subject: [PATCH] catalog-node: fix test assertion Signed-off-by: Patrik Oldsberg --- plugins/catalog-node/src/catalogService.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/catalog-node/src/catalogService.test.ts b/plugins/catalog-node/src/catalogService.test.ts index e6f2668d70..b34de6c17c 100644 --- a/plugins/catalog-node/src/catalogService.test.ts +++ b/plugins/catalog-node/src/catalogService.test.ts @@ -26,7 +26,6 @@ import { registerMswTestHooks, startTestBackend, } from '@backstage/backend-test-utils'; -import { CatalogClient } from '@backstage/catalog-client'; import { rest } from 'msw'; import { setupServer } from 'msw/node'; import { catalogServiceRef } from './catalogService'; @@ -46,7 +45,7 @@ describe('catalogServiceRef', () => { catalog: catalogServiceRef, }, async init({ catalog }) { - expect(catalog).toBeInstanceOf(CatalogClient); + expect(catalog.getEntities).toBeDefined(); }, }); },