Skip to content

Commit 0885b18

Browse files
committed
fix(tests): fix broken test due to class mismatch
1 parent f484801 commit 0885b18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ test('button', () => {
1010
expect(buttonElement).toBeInTheDocument()
1111
expect(buttonElement).toHaveTextContent('my button: type primary')
1212
expect(buttonElement.outerHTML).toMatchInlineSnapshot(
13-
`"<button class="my-button">my button: type primary</button>"`,
13+
`"<button class="text-red-500">my button: type primary</button>"`,
1414
)
1515

16-
expect(buttonElement).toHaveClass('my-button')
16+
expect(buttonElement).toHaveClass('text-red-500')
1717
})

0 commit comments

Comments
 (0)