From 3d81fa911188e72152eb7765f3956befe93bbd56 Mon Sep 17 00:00:00 2001 From: Prasetya Aria Wibawa Date: Thu, 19 Aug 2021 16:45:53 +0700 Subject: [PATCH] change test to not use configApiRef Signed-off-by: Prasetya Aria Wibawa --- .../OwnershipCard/OwnershipCard.test.tsx | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx index e16d4eab69..4bf6d2007a 100644 --- a/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx +++ b/plugins/org/src/components/Cards/OwnershipCard/OwnershipCard.test.tsx @@ -24,12 +24,7 @@ import { renderInTestApp } from '@backstage/test-utils'; import { queryByText } from '@testing-library/react'; import React from 'react'; import { OwnershipCard } from './OwnershipCard'; -import { - ApiProvider, - ApiRegistry, - ConfigReader, -} from '@backstage/core-app-api'; -import { ConfigApi, configApiRef } from '@backstage/core-plugin-api'; +import { ApiProvider, ApiRegistry } from '@backstage/core-app-api'; describe('OwnershipCard', () => { const userEntity: GroupEntity = { @@ -122,19 +117,8 @@ describe('OwnershipCard', () => { ] as any, }); - const configApi: ConfigApi = new ConfigReader({ - app: { - baseUrl: 'http://localhost:3000', - }, - }); - const { getByText } = await renderInTestApp( - +