From 48a71d63002ec12410fa7d84f47773e3e546b351 Mon Sep 17 00:00:00 2001 From: Nikita Nek Dudnik Date: Fri, 5 Jun 2020 16:22:44 +0200 Subject: [PATCH] fix: tests --- .../src/ingestion/source/readers/GitHubLocationReader.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/catalog-backend/src/ingestion/source/readers/GitHubLocationReader.test.ts b/plugins/catalog-backend/src/ingestion/source/readers/GitHubLocationReader.test.ts index 1f0f6ed539..56120fab23 100644 --- a/plugins/catalog-backend/src/ingestion/source/readers/GitHubLocationReader.test.ts +++ b/plugins/catalog-backend/src/ingestion/source/readers/GitHubLocationReader.test.ts @@ -81,6 +81,8 @@ describe('Integration: GitHubLocationSource', () => { }); it('fetches the fixture from backstage repo', async () => { + (fetch as any).mockResolvedValueOnce(new Response('component3')); + const PERMANENT_LINK = 'https://github.com/spotify/backstage/blob/ee84a874f8e37f87940cbe515a86c07a2db29541/plugins/catalog-backend/fixtures/one_component.yaml';