File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 },
77 "devDependencies" : {
88 "babel-cli" : " 6.6.5" ,
9- "babel-eslint" : " 6.0.2" ,
109 "babel-loader" : " 6.2.4" ,
1110 "babel-preset-es2015" : " 6.6.0" ,
1211 "babel-preset-react" : " 6.5.0" ,
1716 "chai-enzyme" : " 0.4.1" ,
1817 "enzyme" : " 2.2.0" ,
1918 "mocha" : " 2.4.5" ,
20- "npm-run-all " : " 1.7.0 " ,
19+ "react-addons-test-utils " : " 0.14.8 " ,
2120 "webpack" : " 1.12.14" ,
2221 "webpack-dev-middleware" : " 1.6.1" ,
2322 "webpack-hot-middleware" : " 2.10.0"
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { shallow } from 'enzyme'
3+ import chai , { expect } from 'chai'
4+ import chaiEnzyme from 'chai-enzyme'
5+ chai . use ( chaiEnzyme ( ) )
6+
7+ import Root from '../../src/components/root.jsx'
8+
9+ const output = shallow ( < Root /> )
10+
11+ exports [ '<Root />' ] = {
12+ 'is a <div>' : ( ) => expect ( output ) . to . have . tagName ( 'div' ) ,
13+ }
Original file line number Diff line number Diff line change 1+ --require babel-register
2+ --ui exports
3+ --recursive test/**/*.js?(x)
You can’t perform that action at this time.
0 commit comments