summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/flipping-logo.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-04 15:22:35 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-04 15:22:35 +0200
commit1fe43a98098eeef254a26b21d77e2d0ce8e55c30 (patch)
treedec374b00da9117d52aa6c0cecae59c1cd75b496 /src/components/molecules/layout/flipping-logo.test.tsx
parenta46f8f9ffeb2c32ca21d58ce13bff189fec84cb0 (diff)
chore: add a FlippingLogo component
Diffstat (limited to 'src/components/molecules/layout/flipping-logo.test.tsx')
-rw-r--r--src/components/molecules/layout/flipping-logo.test.tsx25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/molecules/layout/flipping-logo.test.tsx b/src/components/molecules/layout/flipping-logo.test.tsx
new file mode 100644
index 0000000..806fdbe
--- /dev/null
+++ b/src/components/molecules/layout/flipping-logo.test.tsx
@@ -0,0 +1,25 @@
+import { render, screen } from '@test-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();
+ });
+});