Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it("should have an style of red if the conditional is true", () => {
- const wrapper = mount(<ErrorMessage />);
- wrapper.setProps({ error: "Some text" });
- expect(wrapper.find(Text).prop("style")).to.deep.equal({ color: "red" });
- })
Add Comment
Please, Sign In to add comment