Skip to content

Commit 4074dc6

Browse files
committed
test: accept React 17 SSR root marker
1 parent 0a8a9d2 commit 4074dc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/__tests__/useInView.ssr.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ test("useInView renders on the server without diagnostics", () => {
1111
return createElement("div", { ref }, String(inView));
1212
}
1313

14-
expect(renderToString(createElement(CompatibilityFixture))).toBe(
15-
"<div>false</div>",
14+
expect(renderToString(createElement(CompatibilityFixture))).toContain(
15+
">false</div>",
1616
);
1717
expect(consoleError).not.toHaveBeenCalled();
1818
} finally {

0 commit comments

Comments
 (0)