Skip to content

Commit a8b2e6b

Browse files
committed
#19 setup travis
setup travis with one passing test
1 parent 5c59ae0 commit a8b2e6b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "node"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A web application for parents to notify schools if someone other than the usual guardian will be picking the child up from school",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
7+
"test": "NODE_ENV=test node tests/testdb.js | tap-spec",
88
"babel": "babel index.js -d build",
99
"babelWatch": "babel index.js --watch --out-file build/index.js",
1010
"start": "node ./src/index.js",

tests/testdb.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const test = require('tape');
2+
3+
test('tape is working', (t) => {
4+
const num = 2;
5+
t.equal(num, 2, 'should return 2');
6+
t.end();
7+
})

0 commit comments

Comments
 (0)