import React from 'react';
import { render } from '@testing-library/react';
import { Tabs } from '../../../organisms/Tabs';
describe('', () => {
const tabButtons = [
{ tabId: 'pineapple', title: '🍍 Pineapple' },
{ tabId: 'kiwi', title: '🥝 Kiwi' },
{ tabId: 'watermelon', title: '🍉 Watermelon', afterOnClick: jest.fn() },
];
it('renders the buttons on big screens', async () => {
const { container } = render(
,
);
expect(container).toMatchSnapshot();
});
it('renders the buttons on small screens', async () => {
Object.defineProperty(window, 'innerWidth', { writable: true, configurable: true, value: 320 });
const { container } = render(
,
);
expect(container).toMatchSnapshot();
});
});