Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import { renderComponent, expect } from '../test_helper';
  2. import App from '../../src/components/app';
  3.  
  4. // Use 'describe' to group together similar tests
  5. describe('App', () => {
  6.  
  7. // Use 'it' to test a single attribute of a target
  8. it('shows the correct text', () => {
  9.  
  10. // create an instance of App
  11. const component = renderComponent(App);
  12.  
  13. // Use 'expect' to make an 'assertion' about a target
  14. expect(component).to.contain('React simple starter');
  15.  
  16. });
  17.  
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement