added more test and test skeleton
This commit is contained in:
parent
4455ade49e
commit
758bfa4c5e
7
ui/src/app/components/spinners/LoadingIndicator.test.js
Normal file
7
ui/src/app/components/spinners/LoadingIndicator.test.js
Normal 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} />);
|
||||
});
|
17
ui/src/app/components/spinners/WaitingCard.test.js
Normal file
17
ui/src/app/components/spinners/WaitingCard.test.js
Normal 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} />);
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user