aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/images/flipping-logo.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-07 18:44:14 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commitd75b9a1e150ab211c1052fb49bede9bd16320aca (patch)
treee5bb221d2b8dc83151697fe646e9194f921b5807 /src/components/molecules/images/flipping-logo.test.tsx
parent12a03a9a72f7895d571dbaeeb245d92aa277a610 (diff)
feat(components): add a generic Flip component
The flipping animation is used at several places so it makes sense to use a single component to handle the animation. It will avoid styles duplication.
Diffstat (limited to 'src/components/molecules/images/flipping-logo.test.tsx')
-rw-r--r--src/components/molecules/images/flipping-logo.test.tsx26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/components/molecules/images/flipping-logo.test.tsx b/src/components/molecules/images/flipping-logo.test.tsx
deleted file mode 100644
index ec0b787..0000000
--- a/src/components/molecules/images/flipping-logo.test.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { describe, expect, it } from '@jest/globals';
-import { render, screen } from '../../../../tests/utils';
-import { FlippingLogo } from './flipping-logo';
-
-describe('FlippingLogo', () => {
- it('renders a photo', () => {
- render(
- <FlippingLogo
- altText="Alternative text"
- photo="http://placeimg.com/640/480"
- />
- );
- expect(screen.getByAltText('Alternative text')).toBeInTheDocument();
- });
-
- it('renders a logo', () => {
- render(
- <FlippingLogo
- altText="Alternative text"
- logoTitle="A logo title"
- photo="http://placeimg.com/640/480"
- />
- );
- expect(screen.getByTitle('A logo title')).toBeInTheDocument();
- });
-});