aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/images/flipping-logo.test.tsx
blob: 4be69d1a4d0cc294c6d657a1aeabbf697d01e0fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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();
  });
});