(
id: string,
readTime: number,
numUpvotes = 0,
read = false,
)
| 113 | |
| 114 | describe('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(); |
no outgoing calls
no test coverage detected