mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
12 lines
394 B
TypeScript
12 lines
394 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 original InnerMe is clicked', () => {
|
|
const wrapper = mount(<TestMe name="world" />);
|
|
wrapper.find('#innerMe').simulate('click');
|
|
expect(wrapper.find('#innerMe').text()).toBe('Clicked');
|
|
});
|
|
});
|