Skip to content

Commit

Permalink
chore(button): update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ergenekonyigit committed Sep 5, 2022
1 parent d88a15d commit e763168
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/Button/Button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { theme } from '../../src';
import { fireEvent, render } from '../../src/testUtils';
import Button from '../Button/Button';
import Check from '../../src/icons/Check';
import { ReactTestInstance } from 'react-test-renderer';

describe('Button', () => {
Expand Down Expand Up @@ -56,7 +55,7 @@ describe('Button', () => {
test('should render icon correctly', () => {
// when
const { getByTestId } = render(
<Button testID="button" size="large" text="test" icon={Check} />,
<Button testID="button" size="large" text="test" icon="check" />,
);
const buttonIcon = getByTestId('button-icon');

Expand Down

0 comments on commit e763168

Please sign in to comment.