-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: rare-magma <[email protected]>
- Loading branch information
1 parent
9274e61
commit d7c006d
Showing
5 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { render, screen } from "@testing-library/react"; | ||
import Loading from "./Loading"; | ||
|
||
describe("Loading", () => { | ||
const comp = <Loading />; | ||
|
||
beforeEach(() => { | ||
render(comp); | ||
}); | ||
|
||
it("matches snapshot", () => { | ||
expect(comp).toMatchSnapshot(); | ||
}); | ||
|
||
it("renders initial state", () => { | ||
expect(screen.getByRole("status")).toBeInTheDocument(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Container, Row, Spinner } from "react-bootstrap"; | ||
|
||
function Loading() { | ||
return ( | ||
<Container | ||
fluid | ||
className="position-absolute top-50 start-50 translate-middle" | ||
> | ||
<Row className="justify-content-center"> | ||
<Spinner animation="border" role="status" /> | ||
</Row> | ||
</Container> | ||
); | ||
} | ||
|
||
export default Loading; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Loading > matches snapshot 1`] = `<Loading />`; |