From 7008070fc1bbec014e9245d1724beffaf12896f1 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 19 Aug 2024 10:53:05 +0200 Subject: [PATCH] chore: impl empty results for fake project read model (#7912) Implements empty responses for the fake project read model. Instead of throwing a not implemented error, we'll return empty results. This makes some of the tests in enterprise pass. --- src/lib/features/project/fake-project-read-model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/features/project/fake-project-read-model.ts b/src/lib/features/project/fake-project-read-model.ts index fb9f4b5042..9b7b81287a 100644 --- a/src/lib/features/project/fake-project-read-model.ts +++ b/src/lib/features/project/fake-project-read-model.ts @@ -6,9 +6,9 @@ import type { export class FakeProjectReadModel implements IProjectReadModel { getProjectsForAdminUi(): Promise { - throw new Error('Method not implemented.'); + return Promise.resolve([]); } getProjectsForInsights(): Promise { - throw new Error('Method not implemented.'); + return Promise.resolve([]); } }