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

Function post

packages/shared/src/features/patchy/patchyAssistant.spec.ts:115–128  ·  view source on GitHub ↗
(
    id: string,
    readTime: number,
    numUpvotes = 0,
    read = false,
  )

Source from the content-addressed store, hash-verified

113
114describe('getPatchyQuickReads', () => {
115 const post = (
116 id: string,
117 readTime: number,
118 numUpvotes = 0,
119 read = false,
120 ) => ({
121 id,
122 title: `Post ${id}`,
123 commentsPermalink: `https://app.daily.dev/posts/${id}`,
124 image: '',
125 readTime,
126 numUpvotes,
127 read,
128 });
129
130 it('picks short unread posts from cached feeds, best first', () => {
131 const client = new QueryClient();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected