Skip to content

Commit

Permalink
sets up DOM testing with es6
Browse files Browse the repository at this point in the history
  • Loading branch information
minaorangina committed Mar 6, 2016
1 parent fa6d2b9 commit 063191d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015"]
"presets": ["react", "es2015"]
}
4 changes: 4 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"esversion": 6,
"node": true
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "node start.js",
"dev": "webpack --progress --colors --inline & node start.js",
"build": "webpack --watch",
"test": "node_modules/mocha/bin/mocha --compilers js:babel-core/register 'test/unit/**/*.@(js|jsx)'"
"test": "node_modules/mocha/bin/mocha --compilers js:babel-core/register --require ./test/test_helpers.js 'test/unit/**/*.@(js|jsx)'"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -43,7 +43,7 @@
"babel-preset-react": "^6.5.0",
"chai": "^3.4.1",
"css-loader": "^0.23.1",
"jsdom": "^7.2.1",
"jsdom": "^7.2.2",
"mocha": "^2.3.4",
"node-sass": "^3.4.2",
"nodemon": "^1.9.1",
Expand Down
18 changes: 18 additions & 0 deletions public/src/components/landing.jsx
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
'use strict';

import React from 'react';

const Landing = React.createClass({

render () {

return (
<div>
<h1>
Home or Away?
</h1>
</div>
);
}
})

export default Landing

0 comments on commit 063191d

Please sign in to comment.