mirror of
https://github.com/Mastermindzh/react-starter-kit.git
synced 2025-08-23 17:44:52 +02:00
- Updated to React 18
- Updated for public release - Git was reset for privacy reasons
This commit is contained in:
10
src/features/about/About.spec.tsx
Normal file
10
src/features/about/About.spec.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { render, screen } from "@testing-library/react";
|
||||
import { AboutContainer } from "./About";
|
||||
|
||||
describe("About container", () => {
|
||||
it("renders welcome to the about page", () => {
|
||||
render(<AboutContainer />);
|
||||
|
||||
expect(screen.getByText(/Welcome to the about page/i)).toBeInTheDocument();
|
||||
});
|
||||
});
|
7
src/features/about/About.tsx
Normal file
7
src/features/about/About.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { FunctionComponent } from "react";
|
||||
|
||||
type Props = {};
|
||||
|
||||
export const AboutContainer: FunctionComponent<Props> = () => {
|
||||
return <h1>Welcome to the about page :)</h1>;
|
||||
};
|
Reference in New Issue
Block a user