add index page (#73)

add index page
This commit is contained in:
zizifn
2022-12-13 23:22:38 +08:00
committed by GitHub
parent 7992dc2d0d
commit 1488a6e5f7
30 changed files with 9775 additions and 280 deletions

View File

@@ -0,0 +1,17 @@
import { render } from '@testing-library/react';
import App from './app';
describe('App', () => {
it('should render successfully', () => {
const { baseElement } = render(<App />);
expect(baseElement).toBeTruthy();
});
it('should have a greeting as the title', () => {
const { getByText } = render(<App />);
expect(getByText(/Welcome test-app/gi)).toBeTruthy();
});
});