Skip to content

Instantly share code, notes, and snippets.

@sanjsanj
Created July 1, 2017 15:48
Show Gist options
  • Save sanjsanj/59b704f6e0f9e25af588d9dbd4087d83 to your computer and use it in GitHub Desktop.
Save sanjsanj/59b704f6e0f9e25af588d9dbd4087d83 to your computer and use it in GitHub Desktop.
/* global expect, it, describe */
import React from 'react';
import { shallow } from 'enzyme';
import AddTodo from '.';
describe('AddTodo component', () => {
it('Should render successfully', () => {
const component = shallow(<AddTodo />);
expect(component.exists()).toEqual(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment