From fcab72f3a1fdb67945f46eb005b3a4e2fe0fa850 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Tue, 21 Sep 2021 13:17:05 +0200 Subject: [PATCH] fix tests Signed-off-by: Johan Haals --- .../catalog-import/src/components/useImportState.test.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/catalog-import/src/components/useImportState.test.tsx b/plugins/catalog-import/src/components/useImportState.test.tsx index 260fb66119..1a01c61449 100644 --- a/plugins/catalog-import/src/components/useImportState.test.tsx +++ b/plugins/catalog-import/src/components/useImportState.test.tsx @@ -50,6 +50,7 @@ describe('useImportState', () => { entities: [] as Entity[], }, ], + refreshed: [], }; it('should use initial url', async () => { @@ -131,14 +132,16 @@ describe('useImportState', () => { }); act(() => result.current.onReset()); - expect(result.current).toMatchObject({ activeFlow: 'unknown', activeStepNumber: 0, analysisUrl: undefined, activeState: 'analyze', analyzeResult: undefined, - prepareResult: locationR, + prepareResult: { + type: 'locations', + locations: [{ target: 'https://0', entities: [] }], + }, reviewResult: undefined, }); });