Skip to content

Commit

Permalink
Provide test infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeHiro authored and bnjbvr committed Aug 5, 2016
1 parent c16820e commit 9325752
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ shared/locales

# ignore kresus binary
bin/kresus.js

# ignore tests
tests/
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@
"babel-preset-es2015": "6.3.13",
"babel-preset-react": "6.3.13",
"babel-preset-stage-0": "6.3.13",
"babel-register": "6.11.6",
"babelify": "7.2.0",
"browserify": "12.0.1",
"eslint": "1.10.3",
"eslint-plugin-import": "0.12.1",
"eslint-plugin-react": "3.14.0",
"lodash.throttle": "4.0.1",
"mocha": "2.5.3",
"onchange": "2.0.0",
"should": "10.0.0",
"sprity-cli": "1.0.1",
"watchify": "3.6.1"
},
Expand Down
2 changes: 2 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
./scripts/lint.sh ./ && \
# Compare locales
./node_modules/babel-cli/bin/babel-node.js --presets es2015 ./scripts/compare-locales.js && \
# Run proper tests
./node_modules/mocha/bin/mocha ./tests/ --recursive --require babel-register && \
# Add new tests here
echo "PASS!"
9 changes: 9 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import should from 'should';
import { assert } from '../shared/helpers';

describe('This is a demonstration', function() {
it('true should be true', function() {
let a = true;
a.should.equal(true);
});
});

0 comments on commit 9325752

Please sign in to comment.