-
-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve code coverage for src/screens/OrgPost/OrgPost.test.tsx (#…
…1165) * fix: improve code coverage for src/screens/OrgPost/OrgPost.test.tsx * fix: improved code coverage for src/components/OrgPostCard/OrgPostCard.tsx
- Loading branch information
Showing
3 changed files
with
194 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ const MOCKS = [ | |
likeCount: 0, | ||
commentCount: 0, | ||
comments: [], | ||
pinned: false, | ||
pinned: true, | ||
likedBy: [], | ||
}, | ||
{ | ||
|
@@ -68,6 +68,44 @@ const MOCKS = [ | |
likedBy: [], | ||
comments: [], | ||
}, | ||
{ | ||
_id: '6411e54835d7ba2344a78e30', | ||
title: 'posttwo', | ||
text: 'Tis is the post two', | ||
imageUrl: null, | ||
videoUrl: null, | ||
createdAt: '2023-08-24T09:26:56.524+00:00', | ||
creator: { | ||
_id: '640d98d9eb6a743d75341067', | ||
firstName: 'Aditya', | ||
lastName: 'Shelke', | ||
email: '[email protected]', | ||
}, | ||
likeCount: 0, | ||
commentCount: 0, | ||
pinned: true, | ||
likedBy: [], | ||
comments: [], | ||
}, | ||
{ | ||
_id: '6411e54835d7ba2344a78e31', | ||
title: 'posttwo', | ||
text: 'Tis is the post two', | ||
imageUrl: null, | ||
videoUrl: null, | ||
createdAt: '2023-08-24T09:26:56.524+00:00', | ||
creator: { | ||
_id: '640d98d9eb6a743d75341067', | ||
firstName: 'Aditya', | ||
lastName: 'Shelke', | ||
email: '[email protected]', | ||
}, | ||
likeCount: 0, | ||
commentCount: 0, | ||
pinned: false, | ||
likedBy: [], | ||
comments: [], | ||
}, | ||
], | ||
}, | ||
}, | ||
|
@@ -145,7 +183,7 @@ describe('Organisation Post Page', () => { | |
}, | ||
likeCount: 0, | ||
commentCount: 0, | ||
pinned: false, | ||
pinned: true, | ||
likedBy: [], | ||
comments: [], | ||
}); | ||
|