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

Function createSourcesSettingsMock

packages/webapp/__tests__/SourcePage.tsx:97–118  ·  view source on GitHub ↗
(
  feedSettings: FeedSettings = {
    excludeSources: [
      {
        id: 'react',
        name: 'React',
        image: 'https://reactjs.org',
        handle: 'react',
        permalink: 'permalink/react',
        type: SourceType.Machine,
        public: true,
      },
    ],
  },
)

Source from the content-addressed store, hash-verified

95});
96
97const createSourcesSettingsMock = (
98 feedSettings: FeedSettings = {
99 excludeSources: [
100 {
101 id: 'react',
102 name: 'React',
103 image: 'https://reactjs.org',
104 handle: 'react',
105 permalink: 'permalink/react',
106 type: SourceType.Machine,
107 public: true,
108 },
109 ],
110 },
111): MockedGraphQLResponse<AllTagCategoriesData> => ({
112 request: { query: FEED_SETTINGS_QUERY },
113 result: {
114 data: {
115 feedSettings,
116 },
117 },
118});
119
120let client: QueryClient;
121

Callers 2

renderComponentFunction · 0.85
SourcePage.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected