added more test and test skeleton

This commit is contained in:
Annika Hannig 2023-01-26 11:40:39 +01:00
parent 4455ade49e
commit 758bfa4c5e
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,7 @@
import {render} from '@testing-library/react';
import LoadingIndicator from 'app/components/spinners/LoadingIndicator';
test("render loading indicator", () => {
render(<LoadingIndicator show={true} />);
});

View File

@ -0,0 +1,17 @@
import {render} from '@testing-library/react';
import WaitingCard from 'app/components/spinners/WaitingCard';
beforeEach(() => {
jest.useFakeTimers()
});
afterEach(() => {
jest.runOnlyPendingTimers()
jest.useRealTimers()
});
test("render waiting card", async () => {
render(<WaitingCard isLoading={true} />);
});