Skip to content

Commit 097c6d5

Browse files
committed
fix: fix test for Button
1 parent 5a9e7fa commit 097c6d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/button.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ describe('Button component ', () => {
8282
render(<Button testID="button" size="lg" />);
8383
const button = screen.getByTestId('button');
8484
// TODO: should be fixed to use haveStyle instead of comparing the class name
85-
const expectedStyle = 'font-[600] font-jakarta text-white text-xl';
85+
const expectedStyle =
86+
'font-[600] font-jakarta text-white dark:text-black text-xl';
8687
const receivedStyle =
8788
button.props.children[0].props.children.props.className;
8889
expect(receivedStyle).toContain(expectedStyle);

0 commit comments

Comments
 (0)