Skip to content

Commit 23b9ede

Browse files
committed
feat: added externalLink and commentary fields to post schema and updated tests
1 parent 544afbf commit 23b9ede

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

__tests__/posts.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,16 +2889,22 @@ describe('mutation createMultipleSourcePosts', () => {
28892889
mutation CreateMultipleSourcePosts(
28902890
$sourceIds: [ID!]!
28912891
$title: String
2892+
$commentary: String
2893+
$imageUrl: String
28922894
$content: String
28932895
$image: Upload
28942896
$sharedPostId: ID
2897+
$externalLink: String
28952898
) {
28962899
createMultipleSourcePosts(
28972900
sourceIds: $sourceIds
28982901
title: $title
2902+
commentary: $commentary
2903+
imageUrl: $imageUrl
28992904
content: $content
29002905
image: $image
29012906
sharedPostId: $sharedPostId
2907+
externalLink: $externalLink
29022908
) {
29032909
id
29042910
sourceId
@@ -3240,10 +3246,10 @@ describe('mutation createMultipleSourcePosts', () => {
32403246
.getRepository(SourcePostModeration)
32413247
.findOneOrFail({
32423248
where: { id: addedModerationItem.id },
3243-
select: ['flags', 'createdBy', 'sourceId'],
3249+
select: ['flags', 'createdById', 'sourceId'],
32443250
});
32453251
expect(moderationItem.flags.warningReason).toBeFalsy();
3246-
expect(moderationItem.createdBy).toEqual('1');
3252+
expect(moderationItem.createdById).toEqual('1');
32473253
expect(moderationItem.sourceId).toEqual('m');
32483254
});
32493255
});

0 commit comments

Comments
 (0)