DocSpace-client/packages/shared/components/paging/paging.test.tsx

36 lines
1.4 KiB
TypeScript

// import React from "react";
// // @ts-expect-error TS(7016): Could not find a declaration file for module 'enzy... Remove this comment to see the full error message
// import { mount } from "enzyme";
// import Paging from ".";
// const baseProps = {
// previousLabel: "Previous",
// nextLabel: "Next",
// selectedPageItem: { label: "1 of 1" },
// selectedCountItem: { label: "25 per page" },
// openDirection: "bottom",
// };
describe("<Paging />", () => {
it("renders without error", () => {
// const wrapper = mount(<Paging {...baseProps} />);
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper).toExist();
});
// it("accepts id", () => {
// const wrapper = mount(<Paging {...baseProps} id="testId" />);
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper.prop("id")).toEqual("testId");
// });
// it("accepts className", () => {
// const wrapper = mount(<Paging {...baseProps} className="test" />);
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper.prop("className")).toEqual("test");
// });
// it("accepts style", () => {
// const wrapper = mount(<Paging {...baseProps} style={{ color: "red" }} />);
// // @ts-expect-error TS(2304): Cannot find name 'expect'.
// expect(wrapper.getDOMNode().style).toHaveProperty("color", "red");
// });
});