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

Function getPostCreatedAt

packages/shared/src/components/Feed.spec.tsx:304–308  ·  view source on GitHub ↗
(
  post: Pick<Post, 'createdAt'>,
  label: string,
)

Source from the content-addressed store, hash-verified

302 getRequiredValue(post.title, `Expected ${label} post title`);
303
304const getPostCreatedAt = (
305 post: Pick<Post, 'createdAt'>,
306 label: string,
307): string =>
308 getRequiredValue(post.createdAt, `Expected ${label} post createdAt`);
309
310describe('Feed logged in', () => {
311 it('should add one placeholder when loading', async () => {

Callers 1

Feed.spec.tsxFile · 0.85

Calls 1

getRequiredValueFunction · 0.85

Tested by

no test coverage detected