Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3d5cd31

Browse files
sumnerevanst3chguy
andauthored
Fix ReactionsRowButton test
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 3845d29 commit 3d5cd31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/components/views/messages/ReactionsRowButton-test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe("ReactionsRowButton", () => {
7575
<ReactionsRowButton {...props} />
7676
</MatrixClientContext.Provider>,
7777
);
78-
expect(root).toMatchSnapshot();
78+
expect(root.asFragment()).toMatchSnapshot();
7979

8080
// Try hover and make sure that the ReactionsRowButtonTooltip works
8181
const reactionButton = root.getByRole("button");
@@ -85,7 +85,7 @@ describe("ReactionsRowButton", () => {
8585
});
8686
reactionButton.dispatchEvent(event);
8787

88-
expect(root).toMatchSnapshot();
88+
expect(root.asFragment()).toMatchSnapshot();
8989
});
9090

9191
it("renders reaction row button custom image reactions correctly", () => {

0 commit comments

Comments
 (0)