mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 22:37:48 +08:00
15 lines
335 B
TypeScript
15 lines
335 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
|
|
import { PropTypesOf } from "talk-framework/types";
|
|
|
|
import App from "./App";
|
|
|
|
it("renders comments", () => {
|
|
const props: PropTypesOf<typeof App> = {
|
|
activeTab: "COMMENTS",
|
|
};
|
|
const wrapper = shallow(<App {...props} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|