import React from 'react';
import { screen, render } from '@testing-library/react';
import { Spinner } from './Spinner';
describe('Spinner', () => {
it('Should render the spinner', async () => {
render();
expect(screen.getByLabelText('Loading')).toBeInTheDocument();
});
it('Should render the loading spinner with the custom aria label', async () => {
render();
expect(screen.getByLabelText('Loading sources')).toBeInTheDocument();
});
});