Skip to content

Commit

Permalink
fix: fail test
Browse files Browse the repository at this point in the history
  • Loading branch information
isaaclindenman committed Jan 15, 2024
1 parent 719753b commit 02cc179
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ describe('MarketingCodeSnippet Tests', () => {

it('should display the correct initial tab as active', () => {
render(<MarketingCodeSnippet />);
const androidTab = screen.getByTestId('tab-Android');
expect(androidTab).toHaveClass('tab-active');
const iosTab = screen.getByTestId('tab-iOS');
expect(iosTab).toHaveClass('tab-active');
});

it('should switch to the iOS tab when clicked', () => {
render(<MarketingCodeSnippet />);
const iosTab = screen.getByTestId('tab-iOS');
fireEvent.click(iosTab);
expect(iosTab).toHaveClass('tab-active');
const androidTab = screen.getByTestId('tab-Android');

fireEvent.click(androidTab);
expect(androidTab).toHaveClass('tab-active');
});

it('should display the code snippet for Android framework', () => {
Expand Down

0 comments on commit 02cc179

Please sign in to comment.