mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 14:03:00 +08:00
updated tests
This commit is contained in:
@@ -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>
|
||||
`;
|
||||
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user