Skip to content

Commit

Permalink
Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Khazuar committed May 9, 2020
1 parent 7d698e6 commit d077b9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/MathFieldComponent.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ describe("MathFieldComponent", () => {
expect(mathField.$latex()).toBe("foo");

container.setState({ value: "bar" });
container.forceUpdate();
expect(mathField.$latex()).toBe("bar");

container.setState({ value: "" });
expect(mathField.$latex()).toBe("");
});

test("invalidly created instances throw correct errors", () => {
Expand Down

0 comments on commit d077b9e

Please sign in to comment.