Files
edgetunnel/apps/deno-vless/src/app/app.spec.tsx
zizifn 1488a6e5f7 add index page (#73)
add index page
2022-12-13 23:22:38 +08:00

18 lines
398 B
TypeScript

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();
});
});