Skip to content

Commit

Permalink
allow DSA feature state be overridden by tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Nov 6, 2023
1 parent 14b6b1e commit 2350c0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
1 change: 0 additions & 1 deletion client/src/core/client/stream/test/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const initLocalState = (
if (params.initLocalState) {
params.initLocalState(localRecord, source, environment);
}
localRecord.setValue(false, "dsaFeaturesEnabled");
localRecord.setValue(false, "hasNewNotifications");
};

Expand Down

0 comments on commit 2350c0b

Please sign in to comment.