From 2350c0b46806b5339ee92b6d30e1acd047a681e6 Mon Sep 17 00:00:00 2001 From: nick-funk Date: Mon, 6 Nov 2023 09:33:35 -0700 Subject: [PATCH] allow DSA feature state be overridden by tests --- .../client/stream/test/comments/stream/reportComment.spec.tsx | 2 +- client/src/core/client/stream/test/create.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/core/client/stream/test/comments/stream/reportComment.spec.tsx b/client/src/core/client/stream/test/comments/stream/reportComment.spec.tsx index c78f55b523..d169e6cbd6 100644 --- a/client/src/core/client/stream/test/comments/stream/reportComment.spec.tsx +++ b/client/src/core/client/stream/test/comments/stream/reportComment.spec.tsx @@ -24,7 +24,7 @@ async function createTestRenderer( return stories[0]; }), viewer: sinon.stub().returns(commenters[0]), - settings: sinon.stub().returns(settings), + settings: sinon.stub().returns({ ...settings, dsa: { enabled: true } }), ...resolver.Query, }, Mutation: { diff --git a/client/src/core/client/stream/test/create.tsx b/client/src/core/client/stream/test/create.tsx index 2fc0770f63..26ad0a9e76 100644 --- a/client/src/core/client/stream/test/create.tsx +++ b/client/src/core/client/stream/test/create.tsx @@ -40,7 +40,6 @@ const initLocalState = ( if (params.initLocalState) { params.initLocalState(localRecord, source, environment); } - localRecord.setValue(false, "dsaFeaturesEnabled"); localRecord.setValue(false, "hasNewNotifications"); };