Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgwatson committed Dec 1, 2022
1 parent 92721f8 commit 774861f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/services/Frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ module.exports = {
let groupUrl = isEmpty(groupSlug) ? '/all' : `/groups/${groupSlug}`

const postId = comment?.relations?.post?.id || post.id

return url(`${groupUrl}/post/${postId}/comments/${comment.id}`)
},

Expand Down
3 changes: 2 additions & 1 deletion test/unit/models/FlaggedItem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ describe('FlaggedItem', () => {
link: 'www.hylo.com/post/1'
})
const link = await flaggedItem.getContentLink(group)
expect(link).to.equal(Frontend.Route.post(commentParent.id, group))

expect(link).to.equal(Frontend.Route.comment({ post: commentParent, group, comment }))
})

it('throws an error when object_type is bad', () => {
Expand Down

0 comments on commit 774861f

Please sign in to comment.