mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
15 lines
358 B
TypeScript
15 lines
358 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
|
|
import { PropTypesOf } from "talk-framework/types";
|
|
|
|
import PoweredBy from "./PoweredBy";
|
|
|
|
it("renders correctly", () => {
|
|
const props: PropTypesOf<typeof PoweredBy> = {
|
|
className: "custom",
|
|
};
|
|
const wrapper = shallow(<PoweredBy {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|