Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Nov 21, 2023
1 parent b0b8d07 commit 84101b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ReactDOMTestUtils.re
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ module DOM = {
let findBySelectorAndPartialTextContent = (element, selector, content) =>
querySelectorAll(element, selector)
|> Array.find_opt(node =>
Js.String.includes(~sub=content, node->textContent, ())
Js.String.includes(~search=content, node->textContent, ())
);
};

Expand Down
2 changes: 1 addition & 1 deletion test/React__test.re
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ describe("React", () => {
fallback={({error: _, info}) => {
expect(
info.componentStack
->Js.String.includes(~sub="ComponentThatThrows", ()),
->Js.String.includes(~search="ComponentThatThrows", ()),
)
->toBe(true);
<strong> "An error occured"->React.string </strong>;
Expand Down

0 comments on commit 84101b9

Please sign in to comment.