updated tests

This commit is contained in:
Belen Curcio
2018-08-03 08:24:42 -03:00
parent 051cb9885b
commit c21b8a044e
3 changed files with 13 additions and 2 deletions
@@ -9,6 +9,8 @@ it("renders correctly", () => {
const props: PropTypesOf<typeof InputLabel> = {
className: "custom",
};
const renderer = TestRenderer.create(<InputLabel>Hello</InputLabel>);
const renderer = TestRenderer.create(
<InputLabel {...props}>Hello</InputLabel>
);
expect(renderer.toJSON()).toMatchSnapshot();
});
@@ -0,0 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<p
className="Typography-root Typography-bodyCopy Typography-colorTextPrimary InputLabel-root custom"
>
Hello
</p>
`;
@@ -5,7 +5,7 @@ exports[`renders correctly 1`] = `
className="ValidationMessage-root ValidationMessage-colorError custom"
>
<span
className="Icon-root ValidationMessage-icon Icon-xsm"
className="Icon-root ValidationMessage-icon Icon-xs"
>
warning
</span>