test: fix front-end tests

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-11-15 12:29:39 +01:00
parent bfbc299f37
commit 105d3b5814
24 changed files with 185 additions and 349 deletions

View File

@@ -134,6 +134,7 @@ export const loginMock = {
__typename: "Config",
auth: {
__typename: "Auth",
databaseLogin: true,
oauthProviders: [],
},
registrationsOpen: true,

View File

@@ -106,6 +106,7 @@ export const eventCommentThreadsMock = {
},
deletedAt: null,
insertedAt: "2020-12-03T09:02:00Z",
publishedAt: "2020-12-03T09:02:00Z",
isAnnouncement: false,
language: "en",
},
@@ -137,6 +138,7 @@ export const eventCommentThreadsMock = {
},
deletedAt: null,
insertedAt: "2020-12-03T11:02:00Z",
publishedAt: "2020-12-03T11:02:00Z",
isAnnouncement: false,
language: "en",
},
@@ -164,7 +166,6 @@ export const newCommentForEventResponse: DataMock = {
local: true,
visibility: "PUBLIC",
totalReplies: 0,
updatedAt: "2020-12-03T13:02:00Z",
originComment: null,
inReplyToComment: null,
replies: [],
@@ -183,6 +184,8 @@ export const newCommentForEventResponse: DataMock = {
},
deletedAt: null,
insertedAt: "2020-12-03T13:02:00Z",
updatedAt: "2020-12-03T13:02:00Z",
publishedAt: "2020-12-03T13:02:00Z",
isAnnouncement: false,
language: "en",
},