add icon and theme tests

This commit is contained in:
Bastian Meissner 2021-06-14 21:10:28 +02:00
parent 98eccea2b5
commit aa61b2fb76
6 changed files with 61 additions and 14 deletions

View file

@ -1,5 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Icon test (no size) 1`] = `[Function]`;
exports[`Icon test 1`] = `[Function]`;
exports[`IconButton test 1`] = `[Function]`;

View file

@ -12,6 +12,11 @@ it("Icon test", () => {
expect(asFragment).toMatchSnapshot();
});
it("Icon test (no size)", () => {
const { asFragment } = render(<Icon name={props.name} />);
expect(asFragment).toMatchSnapshot();
});
it("IconButton test", () => {
const { asFragment } = render(
<IconButton icon={props.name} onClick={props.onClick} />,