mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
14 lines
477 B
TypeScript
14 lines
477 B
TypeScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import { TestMe } from './TestMe';
|
|
|
|
describe('TestMe Component', () => {
|
|
it('should render correctly when hovered', () => {
|
|
// TODO:
|
|
// 1. mount a <TestMe> Component here
|
|
// 2. use enzyme wrapper's find() method to retrieve the #innerMe element
|
|
// 3. simulate a hover with "mouseover" event via the simulate() API
|
|
// 4. make assertions with expect on the text() of the #innerMe element
|
|
});
|
|
});
|