aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/comment.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/organisms/layout/comment.test.tsx')
-rw-r--r--src/components/organisms/layout/comment.test.tsx10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/components/organisms/layout/comment.test.tsx b/src/components/organisms/layout/comment.test.tsx
index b64f84a..0e0ea3a 100644
--- a/src/components/organisms/layout/comment.test.tsx
+++ b/src/components/organisms/layout/comment.test.tsx
@@ -1,13 +1,7 @@
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '../../../../tests/utils';
import { UserComment } from './comment';
-import {
- author,
- data,
- formattedDate,
- formattedTime,
- id,
-} from './comment.fixture';
+import { author, data, id } from './comment.fixture';
describe('UserComment', () => {
it('renders an avatar', () => {
@@ -29,7 +23,7 @@ describe('UserComment', () => {
render(<UserComment canReply={true} {...data} />);
expect(
rtlScreen.getByRole('link', {
- name: `${formattedDate} at ${formattedTime}`,
+ name: /\sat\s/,
})
).toHaveAttribute('href', `#comment-${id}`);
});