From 78ebd2baee7032d4e9f90948af223173ba67459f Mon Sep 17 00:00:00 2001 From: Julio Zynger Date: Mon, 3 Jan 2022 16:17:32 +0100 Subject: [PATCH] Adjust test to include configApi Signed-off-by: Julio Zynger --- .../GoCdBuildsComponent.test.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/gocd/src/components/GoCdBuildsComponent/GoCdBuildsComponent.test.tsx b/plugins/gocd/src/components/GoCdBuildsComponent/GoCdBuildsComponent.test.tsx index 66cc8132f8..7f16f40a6a 100644 --- a/plugins/gocd/src/components/GoCdBuildsComponent/GoCdBuildsComponent.test.tsx +++ b/plugins/gocd/src/components/GoCdBuildsComponent/GoCdBuildsComponent.test.tsx @@ -15,6 +15,8 @@ */ import React from 'react'; import { Entity } from '@backstage/catalog-model'; +import { ConfigReader } from '@backstage/core-app-api'; +import { ConfigApi, configApiRef } from '@backstage/core-plugin-api'; import { EntityProvider } from '@backstage/plugin-catalog-react'; import { renderWithEffects, TestApiProvider } from '@backstage/test-utils'; import { GoCdBuildsComponent } from './GoCdBuildsComponent'; @@ -29,11 +31,21 @@ const mockApiClient: GoCdApi = { }; describe('GoCdArtifactsComponent', () => { + const configApi: ConfigApi = new ConfigReader({ + gocd: { + baseUrl: 'gocd.baseurl.com', + }, + }); const entityValue = { entity: { metadata: {} } as Entity }; const renderComponent = () => renderWithEffects( - +