Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Commit

Permalink
Updated packages and tried to run test but it fails because of jestjs…
Browse files Browse the repository at this point in the history
…/jest#1353

Snapshot testing is in standby for now.
  • Loading branch information
vincentaudebert committed Nov 15, 2016
1 parent c6e60af commit 339ed18
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
23 changes: 23 additions & 0 deletions client/js/components/App.spec.js
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();
});
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
"osa-spotify": "^1.0.1",
"raw-loader": "^0.5.1",
"rc-slider": "^3.3.1",
"react": "^15.0.0",
"react-dom": "^15.0.0",
"react-redux": "^4.4.5",
"react-svg-inline": "^1.1.0",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-redux": "^4.4.6",
"react-svg-inline": "^1.2.0",
"redux": "^3.0.0",
"redux-logger": "^2.0.2",
"redux-thunk": "^2.0.1",
Expand All @@ -71,6 +71,7 @@
"node-libs-browser": "^1.0.0",
"normalize-css": "^2.3.1",
"pleeease-cli": "^4.0.0",
"react-test-renderer": "^15.3.2",
"react-transform-hmr": "^1.0.0",
"webpack": "^1.9.11",
"webpack-dev-middleware": "^1.2.0"
Expand Down

0 comments on commit 339ed18

Please sign in to comment.