mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fix test files
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { mount } from 'enzyme';
|
import { mount } from 'enzyme';
|
||||||
|
import { TestMe } from './TestMe';
|
||||||
|
|
||||||
describe('index', () => {
|
describe('index', () => {
|
||||||
it('placeholder', () => {
|
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');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { mount } from 'enzyme';
|
import { mount } from 'enzyme';
|
||||||
import { TestMe } from './TestMe';
|
|
||||||
|
|
||||||
describe('TestMe Component', () => {
|
describe('TestMe Component', () => {
|
||||||
it('should have a non-clickable component when the original InnerMe is clicked', () => {
|
it('placeholder', () => {
|
||||||
const wrapper = mount(<TestMe name="world" />);
|
|
||||||
wrapper.find('#innerMe').simulate('click');
|
|
||||||
expect(wrapper.find('#innerMe').text()).toBe('Clicked');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user