Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { renderComponent, expect } from '../test_helper';
- import App from '../../src/components/app';
- // Use 'describe' to group together similar tests
- describe('App', () => {
- // Use 'it' to test a single attribute of a target
- it('shows the correct text', () => {
- // create an instance of App
- const component = renderComponent(App);
- // Use 'expect' to make an 'assertion' about a target
- expect(component).to.contain('React simple starter');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement