MCPcopy Create free account
hub / github.com/emwalker/digraph / Topic

Function Topic

client/src/components/TopicPage/ViewTopicPage/index.test.tsx:107–124  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

105 environment.mock.resolveMostRecentOperation((operation) =>
106 MockPayloadGenerator.generate(operation, {
107 Topic(context) {
108 return {
109 __typename: 'Topic',
110 children: childrenFor(context),
111 displayName: 'Existing topic',
112 displayParentTopics: [],
113 displaySynonyms: [],
114 id: 'topic-id',
115 repoTopics: repoIds.map((repoId) => ({
116 repoId,
117 repo: {
118 name: repoId,
119 id: repoId,
120 },
121 })),
122 viewerCanUpdate: true,
123 }
124 },
125
126 Link() {
127 return {

Callers

nothing calls this directly

Calls 1

childrenForFunction · 0.85

Tested by

no test coverage detected