mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 16:07:49 +01:00
fix account render test crash
This commit is contained in:
@@ -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;
|
||||||
|
}}
|
||||||
|
/>,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user