UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

59 lines (58 loc) 1.34 kB
import { mockUserProfileData as t, mockUserProfileData2 as r } from "../user/mock_user_profile.js"; import { times as s } from "lodash-es"; import { generateForum as d, generateDiscussionThreadBundle as c } from "../faker/generateDiscussion.js"; import i from "../entity/mockProject.js"; import { mockProjects as n } from "../entity/index.js"; const m = "984321189", a = n.map( (e) => d({ projectId: e.id }) ), l = a.flatMap((e) => s(10).map( (f) => c({ forumId: e.id, projectId: e.projectId }) )), o = { id: "999", forumId: m, projectId: i.id, title: "mockTitle1", createdOn: "2022-09-28", createdBy: t.ownerId, modifiedOn: "2022-09-28", etag: "xxx", messageKey: "xxx", numberOfViews: 2, numberOfReplies: 3, lastActivity: "2022-09-28", activeAuthors: [t.ownerId, r.ownerId], isEdited: !1, isDeleted: !1, isPinned: !1 }, u = { ...o, id: "888", projectId: i.id, title: "mockTitle2", createdBy: r.ownerId, numberOfViews: 14, numberOfReplies: 3 }, O = { ...o, id: "123", createdBy: r.ownerId, threadId: o.id }, h = [ ...l, o, u ]; export { m as MOCK_FORUM_ID, O as mockDiscussionReplyBundle, o as mockDiscussionThreadBundle, u as mockDiscussionThreadBundle2, h as mockDiscussionThreadBundles, a as mockForums }; //# sourceMappingURL=mock_discussion.js.map