Skip to content

Commit

Permalink
Add some testing
Browse files Browse the repository at this point in the history
Issue: #176
  • Loading branch information
nicolasbock committed Nov 16, 2018
1 parent 222c78b commit c9ebece
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
language: node_js

node_js:
- "node"

addons:
apt:
update: true

node_js:
- "node"

notifications:
webhooks:
urls:
Expand All @@ -17,9 +17,11 @@ notifications:

install:
- npm install jshint PrettyCSS js-beautify html-linter -g
- npm install
- bundle install

script:
- ./lint.sh
- bundle exec danger
- bundle exec jekyll build
- npm test
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"scripts": {
"test": "mocha"
},
"devDependencies": {
"mocha": "^5.2.0"
}
}
8 changes: 8 additions & 0 deletions test/test-main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var assert = require('assert');
describe('Array', function() {
describe('#indexOf()', function() {
it('should return -1 when the value is not present', function() {
assert.equal([1,2,3].indexOf(4), -1);
});
});
});

0 comments on commit c9ebece

Please sign in to comment.