We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01d9c0 commit 857a6cbCopy full SHA for 857a6cb
components/LoadingSpinner/LoadingSpinner.test.tsx
@@ -0,0 +1,19 @@
1
+// Copyright (c) Gridiron Survivor.
2
+// Licensed under the MIT License.
3
+
4
+import { render, screen } from '@testing-library/react';
5
+import { LoadingSpinner } from './LoadingSpinner';
6
7
+describe('LoadingSpinner', () => {
8
+ it('renders without additional classes', () => {
9
+ render(<LoadingSpinner />);
10
+ expect(screen.getByTestId('loading-spinner')).toBeInTheDocument();
11
+ });
12
13
+ it('renders with additional classes when className is passed', () => {
14
+ render(<LoadingSpinner className="extra-classname" />);
15
+ expect(screen.getByTestId('loading-spinner')).toHaveClass(
16
+ 'extra-classname',
17
+ );
18
19
+});
0 commit comments