File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " " ,
66 "repository" : " " ,
7- "scripts" : {},
7+ "scripts" : {
8+ "test" : " mocha"
9+ },
810 "author" : " Gordon Freeman <eax@gmx.us>" ,
911 "license" : " MIT" ,
1012 "devDependencies" : {
1517 "babel-plugin-transform-strict-mode" : " ^6.3.13" ,
1618 "babel-preset-react" : " ^6.3.13" ,
1719 "babel-preset-stage-0" : " ^6.3.13" ,
20+ "chai" : " ^3.4.1" ,
1821 "css-loader" : " ^0.23.0" ,
1922 "eslint" : " ^1.10.3" ,
2023 "eslint-loader" : " ^1.1.1" ,
24+ "eslint-plugin-react" : " ^3.12.0" ,
2125 "html-webpack-plugin" : " ^1.7.0" ,
26+ "mocha" : " ^2.3.4" ,
2227 "node-sass" : " ^3.4.2" ,
2328 "react" : " ^0.14.3" ,
29+ "react-addons-test-utils" : " ^0.14.5" ,
2430 "react-bootstrap" : " ^0.28.1" ,
2531 "react-dom" : " ^0.14.3" ,
2632 "react-hot-loader" : " ^1.3.0" ,
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ var expect = require ( 'chai' ) . expect ;
4+ var IF = require ( '../src/if.jsx' ) ;
5+ var TestUtils = require ( 'react-addons-test-utils' ) ;
6+
7+ describe ( 'Testing my div' , function ( ) {
8+ it ( 'should contain text: Lovely! Here it is - my very first React component!' , function ( ) {
9+ var Node = TestUtils . renderIntoDocument ( '<IF />' ) ;
10+
11+ console . log ( Node ) ;
12+ } ) ;
13+ } ) ;
You can’t perform that action at this time.
0 commit comments