Guest User

Untitled

a guest
Dec 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. it("should have an style of red if the conditional is true", () => {
  2. const wrapper = mount(<ErrorMessage />);
  3. wrapper.setProps({ error: "Some text" });
  4. expect(wrapper.find(Text).prop("style")).to.deep.equal({ color: "red" });
  5. })
Add Comment
Please, Sign In to add comment