mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
Add tests
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { shallow } from "enzyme";
|
||||
import React from "react";
|
||||
|
||||
import { PropTypesOf } from "talk-framework/types";
|
||||
|
||||
import ButtonsBar from "./ButtonsBar";
|
||||
|
||||
it("renders correctly", () => {
|
||||
const props: PropTypesOf<typeof ButtonsBar> = {
|
||||
children: "children",
|
||||
};
|
||||
const wrapper = shallow(<ButtonsBar {...props} />);
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`renders correctly 1`] = `
|
||||
<withPropsOnChange(Flex)
|
||||
direction="row"
|
||||
itemGutter="half"
|
||||
>
|
||||
children
|
||||
</withPropsOnChange(Flex)>
|
||||
`;
|
||||
Reference in New Issue
Block a user