Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed May 5, 2015
1 parent 8cb0d73 commit 64ebeaa
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
@@ -0,0 +1,3 @@
language: node_js
node_js:
- 0.12
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -2,7 +2,8 @@
"private": true,
"main": "server.js",
"scripts": {
"start": "node server.js"
"start": "node server.js",
"test": "lab tests"
},
"dependencies": {
"good": "^6.1.2",
Expand All @@ -11,13 +12,15 @@
"newrelic": "^1.18.5"
},
"devDependencies": {
"chai": "^2.3.0",
"grunt": "~0.4.2",
"grunt-bower-task": "~0.4.0",
"grunt-contrib-concat": "~0.5.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.5.1",
"grunt-contrib-watch": "~0.6.1",
"grunt-lintspaces": "~0.6.0"
"grunt-lintspaces": "~0.6.0",
"lab": "^5.8.0"
},
"engines": {
"node": "0.12",
Expand Down
19 changes: 19 additions & 0 deletions tests/get.js
@@ -0,0 +1,19 @@
var Lab = require('lab');
var lab = exports.lab = Lab.script();

var assert = require('chai').assert;
var server = require('../server');

lab.experiment('GET /', function() {
lab.test('should return HTTP 200 status code', function(done) {
var options = {
method: 'GET',
url: '/'
};

server.inject(options, function(response) {
assert.equal(response.statusCode, 200);
done();
});
});
});

0 comments on commit 64ebeaa

Please sign in to comment.