Steps 2-3 and 2-4

This commit is contained in:
Elizabeth Craig
2019-02-28 08:10:18 -08:00
parent d98d491fed
commit 3fdd80f39a
4 changed files with 177 additions and 118 deletions

View File

@@ -1,11 +1,7 @@
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');
describe('index', () => {
it('placeholder', () => {
});
});

View File

@@ -3,7 +3,7 @@ import { mount } from 'enzyme';
import { TestMe } from './TestMe';
describe('TestMe Component', () => {
it('should have a non-clickable component when the origina InnerMe is clicked', () => {
it('should have a non-clickable component when the original InnerMe is clicked', () => {
const wrapper = mount(<TestMe name="world" />);
wrapper.find('#innerMe').simulate('click');
expect(wrapper.find('#innerMe').text()).toBe('Clicked');