Select Git revision
buttonBar.test.js
Forked from
SOFT Core / SOFT 260 / Boost Board Game
5 commits behind, 1 commit ahead of the upstream repository.
Brady James Garvin authored
buttonBar.test.js 561 B
import React from 'react';
import { render } from '@testing-library/react';
import { Button, ButtonBar } from './buttonBar.js';
describe('the Button component', () => {
test('is an ordinary button with only an image and alt text', () => {
const { container } = render(<Button image="abc" altText="def" />);
expect(container).toMatchSnapshot();
});
});
describe('the ButtonBar component', () => {
test('is an ordinary div', () => {
const { container } = render(<ButtonBar>abc</ButtonBar>);
expect(container).toMatchSnapshot();
});
});