From 81b1e0e05919eb368a66aef47adcf7738af76f29 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 29 Sep 2023 11:47:06 +0200
Subject: refactor(components): rewrite Spinner component

* Message should be set as children
* Default message is no longer available (depending on use case, the
consumer might prefer aria-label instead)
* It is now possible to define the message position
---
 src/components/atoms/loaders/spinner.test.tsx | 15 ---------------
 1 file changed, 15 deletions(-)
 delete mode 100644 src/components/atoms/loaders/spinner.test.tsx

(limited to 'src/components/atoms/loaders/spinner.test.tsx')

diff --git a/src/components/atoms/loaders/spinner.test.tsx b/src/components/atoms/loaders/spinner.test.tsx
deleted file mode 100644
index 553c3ef..0000000
--- a/src/components/atoms/loaders/spinner.test.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen } from '../../../../tests/utils';
-import { Spinner } from './spinner';
-
-describe('Spinner', () => {
-  it('renders a spinner loader', () => {
-    render(<Spinner />);
-    expect(screen.getByText('Loading...')).toBeInTheDocument();
-  });
-
-  it('renders a spinner loader with a custom message', () => {
-    render(<Spinner message="Submitting" />);
-    expect(screen.getByText('Submitting')).toBeInTheDocument();
-  });
-});
-- 
cgit v1.2.3

