aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/page/loading-page-comments.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/templates/page/loading-page-comments.test.tsx')
-rw-r--r--src/components/templates/page/loading-page-comments.test.tsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/templates/page/loading-page-comments.test.tsx b/src/components/templates/page/loading-page-comments.test.tsx
new file mode 100644
index 0000000..b9ccb3e
--- /dev/null
+++ b/src/components/templates/page/loading-page-comments.test.tsx
@@ -0,0 +1,13 @@
+import { describe, expect, it } from '@jest/globals';
+import { render, screen as rtlScreen } from '../../../../tests/utils';
+import { LoadingPageComments } from './loading-page-comments';
+
+describe('LoadingPageComments', () => {
+ it('renders a spinner', () => {
+ render(<LoadingPageComments />);
+
+ expect(
+ rtlScreen.getByText('The comments are loading...')
+ ).toBeInTheDocument();
+ });
+});