Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Hapi rewrite #32

Merged
7 commits merged into from Jan 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test:
@node node_modules/lab/bin/lab
test-cov:
@node node_modules/lab/bin/lab -t 100
test-cov-html:
@node node_modules/lab/bin/lab -r html -o coverage.html

.PHONY: test test-cov test-cov-html
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
"underscore": "1.7.0"
},
"scripts": {
"start": "node index.js"
"start": "node index.js",
"test": "make test-cov"
},
"main": "index.js"
"main": "index.js",
"devDependencies": {
"code": "^1.2.1",
"lab": "^5.2.0"
}
}
8 changes: 8 additions & 0 deletions test/one.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var Code = require('code'); // assertion library
var Lab = require('lab');
var lab = exports.lab = Lab.script();

lab.test('returns true when 1 + 1 equals 2', function (done) {
Code.expect(1+1).to.equal(2);
done();
});