Files
frontend-bootcamp/step2-04/demo/src/index.spec.tsx
2019-02-26 14:39:41 -08:00

12 lines
393 B
TypeScript

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');
});
});