diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-24 16:18:02 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-05-24 16:18:02 +0200 |
| commit | c347190a4307c172d15dac156da86567098035f6 (patch) | |
| tree | bb0744acd041fe6a0afa2fb9e7a76c77e018a7f9 /src/components/organisms/layout/comment.test.tsx | |
| parent | e1cc2de22fc703d94e1151beb9526d8cbe0e49c1 (diff) | |
test: fix theme toggle and comment tests
Diffstat (limited to 'src/components/organisms/layout/comment.test.tsx')
| -rw-r--r-- | src/components/organisms/layout/comment.test.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/organisms/layout/comment.test.tsx b/src/components/organisms/layout/comment.test.tsx index 490a52b..66003d1 100644 --- a/src/components/organisms/layout/comment.test.tsx +++ b/src/components/organisms/layout/comment.test.tsx @@ -12,7 +12,7 @@ describe('Comment', () => { it('renders an avatar', () => { render(<Comment canReply={true} {...data} />); expect( - screen.getByRole('img', { name: 'Your name avatar' }) + screen.getByRole('img', { name: author.avatar.alt }) ).toBeInTheDocument(); }); |
