import { h } from 'preact';
import ActivityIndicator from '../ActivityIndicator';
import { render, screen } from '@testing-library/preact';
describe('ActivityIndicator', () => {
test('renders an ActivityIndicator with default size md', async () => {
render();
expect(screen.getByLabelText('Loading…')).toMatchInlineSnapshot(`
`);
});
test('renders an ActivityIndicator with size sm', async () => {
render();
expect(screen.getByLabelText('Loading…')).toMatchInlineSnapshot(`
`);
});
test('renders an ActivityIndicator with size lg', async () => {
render();
expect(screen.getByLabelText('Loading…')).toMatchInlineSnapshot(`
`);
});
});