From 10ef669bfcefebb4c146c03e7247a9ff50ad45b6 Mon Sep 17 00:00:00 2001 From: Olivia Guyot Date: Mon, 6 May 2024 23:53:10 +0200 Subject: [PATCH] test(dataviz): fix ogc-client mock to avoid failing test --- libs/feature/dataviz/src/lib/service/data.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/feature/dataviz/src/lib/service/data.service.spec.ts b/libs/feature/dataviz/src/lib/service/data.service.spec.ts index 16b0228181..390d087a94 100644 --- a/libs/feature/dataviz/src/lib/service/data.service.spec.ts +++ b/libs/feature/dataviz/src/lib/service/data.service.spec.ts @@ -85,7 +85,7 @@ jest.mock('@camptocamp/ogc-client', () => ({ bulkDownloadLinks: { json: 'http://json', csv: 'http://csv' }, }) } - featureCollections = () => Promise.resolve(['collection1']) + featureCollections = Promise.resolve(['collection1']) }, }))