|
| 1 | +import { GetAllPostsDocument, GetRecentPostsDocument } from "@src/graphql/generated/graphql"; |
| 2 | + |
| 3 | +export const explorePublicationsMocks = [ |
| 4 | + { |
| 5 | + request: { |
| 6 | + query: GetAllPostsDocument, |
| 7 | + variables: { |
| 8 | + limit: 10, |
| 9 | + }, |
| 10 | + }, |
| 11 | + result: { |
| 12 | + data: { |
| 13 | + getAllPosts: [ |
| 14 | + { |
| 15 | + id: "1", |
| 16 | + title: "Título de prueba", |
| 17 | + description: "Descripción", |
| 18 | + visibility: "PUBLIC", |
| 19 | + commentCount: 0, |
| 20 | + likeCount: 0, |
| 21 | + bookmarkCount: 0, |
| 22 | + viewCount: 0, |
| 23 | + updatedAt: new Date().toISOString(), |
| 24 | + createdAt: new Date().toISOString(), |
| 25 | + cid: "somecid", |
| 26 | + author: { |
| 27 | + address: "0x123", |
| 28 | + displayName: "Autor Prueba", |
| 29 | + followersCount: 10, |
| 30 | + followingCount: 5, |
| 31 | + coverPicture: "cover.jpg", |
| 32 | + profilePicture: "profile.jpg", |
| 33 | + bio: "Bio", |
| 34 | + publicationsCount: 2, |
| 35 | + username: "autorprueba", |
| 36 | + __typename: "User", |
| 37 | + }, |
| 38 | + media: [], |
| 39 | + __typename: "Post", |
| 40 | + }, |
| 41 | + ], |
| 42 | + }, |
| 43 | + }, |
| 44 | + }, |
| 45 | + { |
| 46 | + request: { |
| 47 | + query: GetRecentPostsDocument, |
| 48 | + variables: { |
| 49 | + limit: 100, |
| 50 | + }, |
| 51 | + }, |
| 52 | + result: { |
| 53 | + data: { |
| 54 | + getRecentPosts: [ |
| 55 | + { |
| 56 | + id: "1", |
| 57 | + title: "Título de prueba", |
| 58 | + description: "Descripción", |
| 59 | + visibility: "PUBLIC", |
| 60 | + commentCount: 0, |
| 61 | + likeCount: 0, |
| 62 | + bookmarkCount: 0, |
| 63 | + viewCount: 0, |
| 64 | + updatedAt: new Date().toISOString(), |
| 65 | + createdAt: new Date().toISOString(), |
| 66 | + cid: "somecid", |
| 67 | + author: { |
| 68 | + address: "0x123", |
| 69 | + displayName: "Autor Prueba", |
| 70 | + followersCount: 10, |
| 71 | + followingCount: 5, |
| 72 | + coverPicture: "cover.jpg", |
| 73 | + profilePicture: "profile.jpg", |
| 74 | + bio: "Bio", |
| 75 | + publicationsCount: 2, |
| 76 | + username: "autorprueba", |
| 77 | + __typename: "User", |
| 78 | + }, |
| 79 | + media: [], |
| 80 | + __typename: "Post", |
| 81 | + }, |
| 82 | + ], |
| 83 | + }, |
| 84 | + }, |
| 85 | + }, |
| 86 | +]; |
0 commit comments