From 79373358f2e0a5580bb2d9fdb3737f8c93e17bfb Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Thu, 25 Aug 2022 13:51:21 +0200 Subject: [PATCH] reuse discoveryServiceRef Signed-off-by: Johan Haals --- plugins/catalog-node/src/catalogService.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/catalog-node/src/catalogService.test.ts b/plugins/catalog-node/src/catalogService.test.ts index 3f11e8a9f0..050f134a71 100644 --- a/plugins/catalog-node/src/catalogService.test.ts +++ b/plugins/catalog-node/src/catalogService.test.ts @@ -18,7 +18,7 @@ import { PluginEndpointDiscovery } from '@backstage/backend-common'; import { createBackendModule, createServiceFactory, - createServiceRef, + discoveryServiceRef, } from '@backstage/backend-plugin-api'; import { startTestBackend } from '@backstage/backend-test-utils'; import { CatalogClient } from '@backstage/catalog-client'; @@ -27,9 +27,7 @@ import { catalogServiceRef } from './catalogService'; describe('catalogServiceRef', () => { it('should return a catalogClient', async () => { const mockDiscoveryFactory = createServiceFactory({ - service: createServiceRef({ - id: 'core.discovery', - }), + service: discoveryServiceRef, deps: {}, factory: async ({}) => { return async () => jest.fn() as unknown as PluginEndpointDiscovery;