MCPcopy Create free account
hub / github.com/dailydotdev/apps / setSourceMode

Function setSourceMode

packages/shared/src/components/Feed.spec.tsx:1292–1301  ·  view source on GitHub ↗
(mode: string | null)

Source from the content-addressed store, hash-verified

1290 it('should show less from a source and set it back to Auto', async () => {
1291 const sent: (string | null)[] = [];
1292 const setSourceMode = (mode: string | null): MockedGraphQLResponse => ({
1293 request: {
1294 query: SET_FEED_SOURCE_MODE_MUTATION,
1295 variables: { sourceId: 'echojs', mode },
1296 },
1297 result: () => {
1298 sent.push(mode);
1299 return { data: { setFeedSourceMode: { _: true } } };
1300 },
1301 });
1302 // The controls come back from the API after each change.
1303 const controlsAfter = (
1304 sources: { source: { id: string }; mode: string }[],

Callers 1

Feed.spec.tsxFile · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected