adding enzyme test

This commit is contained in:
Ken
2019-02-24 14:02:44 -08:00
parent bee197bd72
commit 58721000ac
9 changed files with 503 additions and 42 deletions
+11
View File
@@ -0,0 +1,11 @@
import React from 'react';
import { mount } from 'enzyme';
import { TestMe } from './TestMe';
describe('TestMe Component', () => {
it('should have a non-clickable component when the origina InnerMe is clicked', () => {
const wrapper = mount(<TestMe name="world" />);
wrapper.find('#innerMe').simulate('click');
expect(wrapper.find('#innerMe').text()).toBe('Clicked');
});
});