Skip to content

Commit 681b955

Browse files
author
Said Shah
committed
Changed assert for invalid element test
1 parent b020c9a commit 681b955

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/molecules/accessible-list/accessible-list.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ describe("AccessibleList", () => {
5555
);
5656

5757
// Assert
58-
expect(container.innerHTML).not.toContain("null");
59-
expect(container.innerHTML).not.toContain("undefined");
58+
expect(container.childNodes).toHaveLength(2);
6059
});
6160

6261
it("when onClick set, calls handler upon click", async () => {

0 commit comments

Comments
 (0)