import { render } from '@testing-library/react';
import AnimatedBorder from '../index';
const statuses = {
focused: true,
dirty: true,
error: true,
};
describe('Snapshots', () => {
it('AnimatedBorder', () => {
const { asFragment } = render(blah);
expect(asFragment()).toMatchSnapshot();
});
it('AnimatedBorder with label', () => {
const { asFragment } = render(
blah
);
expect(asFragment()).toMatchSnapshot();
});
Object.keys(statuses).forEach(key => {
it(`AnimatedBorder with label and ${key}`, () => {
const prop = {
label: 'Label',
[key]: statuses[key],
};
const { asFragment } = render(
blah
);
expect(asFragment()).toMatchSnapshot();
});
});
});