Skip to content

Commit

Permalink
Added test cases for post redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
anshuDev1 committed Aug 4, 2022
1 parent 9201efc commit 6618cb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/selectors/post_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ describe('post selectors', () => {
})
})

context('#selectRecentPost', () => {
it('returns recent post token', () => {
expect(selector.selectRecentPost(state)).to.deep.equal(state.json.get('recentPost', Immutable.Map()))
})
})

context('#selectPostAuthorId', () => {
it('returns the post authorId', () => {
const props = { postId: '666' }
Expand Down

0 comments on commit 6618cb3

Please sign in to comment.