Skip to content

Commit b020c9a

Browse files
author
Said Shah
committed
Updated test
1 parent e1c4ef2 commit b020c9a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,15 @@ describe("AccessibleList", () => {
4242

4343
test("when invalid react element, does not render in list", () => {
4444
// Arrange
45-
const buttonText1 = faker.random.word();
46-
const buttonText2 = faker.random.word();
45+
const buttonText = [faker.random.word(), faker.random.word()];
4746

4847
// Act
4948
const { container } = render(
5049
<AccessibleList focusFirstItem={true}>
51-
<button>{buttonText1}</button>
50+
<button>{buttonText[0]}</button>
5251
{null}
5352
{undefined}
54-
<button>{buttonText2}</button>
53+
<button>{buttonText[1]}</button>
5554
</AccessibleList>
5655
);
5756

0 commit comments

Comments
 (0)