This repository has been archived by the owner on Aug 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated packages and tried to run test but it fails because of jestjs…
…/jest#1353 Snapshot testing is in standby for now.
- Loading branch information
1 parent
c6e60af
commit 339ed18
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import IntelligentApp from '../containers/IntelligentApp'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
test('App', () => { | ||
const component = renderer.create( | ||
<IntelligentApp /> | ||
); | ||
const tree = component.toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
|
||
// // manually trigger the callback | ||
// tree.props.onMouseEnter(); | ||
// // re-rendering | ||
// tree = component.toJSON(); | ||
// expect(tree).toMatchSnapshot(); | ||
|
||
// // manually trigger the callback | ||
// tree.props.onMouseLeave(); | ||
// // re-rendering | ||
// tree = component.toJSON(); | ||
// expect(tree).toMatchSnapshot(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters