add sample tests for post commit hook
This commit is contained in:
parent
6263b25a02
commit
4166119035
6 changed files with 80 additions and 31 deletions
29
tests/app_test.js
Normal file
29
tests/app_test.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
var server = require('../server'),
|
||||
chai = require('chai'),
|
||||
chaiHttp = require('chai-http'),
|
||||
should = chai.should();
|
||||
|
||||
chai.use(chaiHttp);
|
||||
|
||||
describe('Basic routes tests', function() {
|
||||
|
||||
it('GET to / should return 200', function(done){
|
||||
chai.request(server)
|
||||
.get('/')
|
||||
.end(function(err, res) {
|
||||
res.should.have.status(200);
|
||||
done();
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
it('GET to /pagecount should return 200', function(done){
|
||||
chai.request(server)
|
||||
.get('/pagecount')
|
||||
.end(function(err, res) {
|
||||
res.should.have.status(200);
|
||||
done();
|
||||
})
|
||||
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue