Skip to content

Commit

Permalink
Merge branch 'feat/comment-drawer' into feat/comment-jump
Browse files Browse the repository at this point in the history
  • Loading branch information
wlliaml committed Feb 20, 2024
2 parents 0141df4 + 7b4ab35 commit c2bee59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions src/components/CommentBeta/Content/Content.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ describe('<Comemnt.Content>', () => {
type="article"
/>
)
expect(
screen.getByText('This comment has been collapsed by the author')
).toBeInTheDocument()
expect(screen.getByText('Comment has been hidden')).toBeInTheDocument()

// blocked by user
cleanup()
Expand All @@ -42,12 +40,10 @@ describe('<Comemnt.Content>', () => {
type="article"
/>
)
expect(
screen.getByText('This comment has been collapsed by the author')
).toBeInTheDocument()
})
expect(screen.getByText('Comment has been hidden')).toBeInTheDocument()

it('should render a banned Comment.Content', () => {
// banned by user
cleanup()
render(
<CommentContent
comment={{
Expand All @@ -57,11 +53,7 @@ describe('<Comemnt.Content>', () => {
type="article"
/>
)
expect(
screen.getByText(
'This comment has been archived due to a violation of the user agreement'
)
).toBeInTheDocument()
expect(screen.getByText('Comment has been hidden')).toBeInTheDocument()
})

it('should render an archived Comment.Content', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.container {
display: flex;
gap: var(--spacing-loose);
align-items: start;
align-items: flex-start;
margin-top: var(--spacing-x-loose);

& > a {
Expand Down

0 comments on commit c2bee59

Please sign in to comment.