Skip to content

Commit 73ff98d

Browse files
committed
1 parent a05d098 commit 73ff98d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
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": {
@@ -15,12 +17,16 @@
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",

test/tests.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
});

0 commit comments

Comments
 (0)