"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const react_2 = require("@testing-library/react");
const Loading_1 = require("../Loading");
describe('Loading component', () => {
    it('loading animation is labeled alert and aria-busy', async () => {
        (0, react_2.render)(react_1.default.createElement(Loading_1.Loading, null));
        const loader = await react_2.screen.getByRole('alert');
        expect(loader).toBeInTheDocument();
        expect(loader.hasAttribute('aria-busy')).toBe(true);
    });
});
