add icon and theme tests
This commit is contained in:
parent
98eccea2b5
commit
aa61b2fb76
6 changed files with 61 additions and 14 deletions
|
@ -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]`;
|
||||
|
|
|
@ -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} />,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue