mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 07:57:48 +01:00
fix account render test crash
This commit is contained in:
@@ -4,9 +4,14 @@ import { shallow } from "enzyme";
|
||||
import { AccountComponent } from "../Account";
|
||||
|
||||
describe("<Account />", () => {
|
||||
it("should say hello", () => {
|
||||
const wrapper = shallow(<AccountComponent />);
|
||||
|
||||
expect(wrapper.text()).toBe("Hello");
|
||||
it("should not crash", () => {
|
||||
const wrapper = shallow(
|
||||
<AccountComponent
|
||||
username="user"
|
||||
changePass={(pass: string) => {
|
||||
return null;
|
||||
}}
|
||||
/>,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user