adding bonus content for jest

This commit is contained in:
Ken
2019-03-04 11:36:08 -08:00
parent 6a15f0f6b6
commit 547e268bc8
15 changed files with 357 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
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
});
});