Skip to content

Commit

Permalink
fix: test falsy button component
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaladin committed Dec 19, 2022
1 parent 369753f commit 34c9e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Button component', () => {
it('should find the button component via testId', () => {
const { getByTestId } = render(<Button testID={testIdName} />);
const foundButton = getByTestId(testIdName);
expect(foundButton).toBeTruthy();
expect(foundButton).toBeFalsy();
});

it('should call onPress function when pressed', () => {
Expand Down

0 comments on commit 34c9e1e

Please sign in to comment.