From c07d392515204626903a6373a1986a76efff8a5b Mon Sep 17 00:00:00 2001 From: Casper Warden <216465704+casperwardensl@users.noreply.github.com> Date: Mon, 18 Dec 2017 21:08:18 +0000 Subject: [PATCH] Specify node.js version for travis and add basic test --- .travis.yml | 2 ++ test/basic.js | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 test/basic.js diff --git a/.travis.yml b/.travis.yml index 0a20062..49a494f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ language: node_js +node_js: "8" + before_script: - npm run setup - npm run build diff --git a/test/basic.js b/test/basic.js new file mode 100644 index 0000000..83d9c93 --- /dev/null +++ b/test/basic.js @@ -0,0 +1,12 @@ +const 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); + }); + }); +}); \ No newline at end of file