diff --git a/.travis.yml b/.travis.yml index f487f735..83690434 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ language: node_js +node_js: + - "node" + addons: apt: update: true -node_js: - - "node" - notifications: webhooks: urls: @@ -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 diff --git a/package.json b/package.json new file mode 100644 index 00000000..3dffb1ac --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "scripts": { + "test": "mocha" + }, + "devDependencies": { + "mocha": "^5.2.0" + } +} diff --git a/test/test-main.js b/test/test-main.js new file mode 100644 index 00000000..21c11761 --- /dev/null +++ b/test/test-main.js @@ -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); + }); + }); +});