blob: ec0b787db78e2656210dbd397c4b9a9fcf2f7dc3 (
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
26
 | 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();
  });
});
 |