Skip to content

Commit

Permalink
Scaffolding for a test suite + Travis CI setup
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
tripu committed Aug 23, 2017
1 parent 33d15dc commit da535b5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- "6"
- "8"
script:
- npm run nsp
- npm test
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scribejs",
"version": "0.9.0",
"version": "0.10.0",
"description": "Converter of RSSAgent IRC logs into minutes in markdown",
"main": "main.js",
"keywords": [
Expand Down Expand Up @@ -50,5 +50,13 @@
"node-fetch": "^1.7.1",
"octokat": "^0.9.0",
"underscore": "^1.8.3"
},
"devDependencies": {
"mocha": "3.4.2",
"nsp": "2.6.3"
},
"scripts": {
"nsp": "nsp check",
"test": "mocha"
}
}
4 changes: 4 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--colors
--growl
--reporter spec
--timeout 2000
3 changes: 3 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

// Empty test file means okay!

0 comments on commit da535b5

Please sign in to comment.