fix account render test crash

This commit is contained in:
2020-06-09 13:01:17 +03:00
parent 70a3907327
commit 1c3bd9fccd

View File

@@ -4,9 +4,14 @@ import { shallow } from "enzyme";
import { AccountComponent } from "../Account"; import { AccountComponent } from "../Account";
describe("<Account />", () => { describe("<Account />", () => {
it("should say hello", () => { it("should not crash", () => {
const wrapper = shallow(<AccountComponent />); const wrapper = shallow(
<AccountComponent
expect(wrapper.text()).toBe("Hello"); username="user"
changePass={(pass: string) => {
return null;
}}
/>,
);
}); });
}); });