diff --git a/.travis.yml b/.travis.yml index 7f5b398..ce7e7f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,5 @@ language: node_js - +node_js: + - "node" + - "8" diff --git a/package.json b/package.json new file mode 100644 index 0000000..3277c23 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "web-skills-intro-assignment", + "version": "1.0.0", + "description": "An assignment for Digital History at University of Toronto. Tests basic Javascript skills.", + "main": "index.js", + "scripts": { + "test": "mocha" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/titaniumbones/assignment-web-skills-intro.git" + }, + "keywords": [ + "javascript", + "assignment" + ], + "author": "Matt Price", + "license": "GPL-3.0", + "bugs": { + "url": "https://github.com/titaniumbones/assignment-web-skills-intro/issues" + }, + "homepage": "https://github.com/titaniumbones/assignment-web-skills-intro#readme", + "dependencies": { + "chai": "^4.1.2", + "mocha": "^4.0.1" + } +} diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..1f4e640 --- /dev/null +++ b/test/test.js @@ -0,0 +1,9 @@ +var assert = require('assert'); +describe('Array', function() { + describe('#indexOf()', function() { + it('should return -1 when the value is not present', function() { + assert.equal(-1, [1,2,3].indexOf(4)); + }); + }); +}); +