Skip to content

Commit

Permalink
Add additional supertest tests for /signup, /api, /contact and /login
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Mar 5, 2014
1 parent 5b581e2 commit d8488c9
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,42 @@ describe('GET /', function() {
});
});

describe('GET /reset', function() {
describe('GET /login', function() {
it('should return 200 OK', function(done) {
request(app)
.get('/login')
.expect(200, done);
});
});

describe('GET /signup', function() {
it('should return 200 OK', function(done) {
request(app)
.get('/signup')
.expect(200, done);
});
});

describe('GET /api', function() {
it('should return 200 OK', function(done) {
request(app)
.get('/api')
.expect(200, done);
});
});

describe('GET /contact', function() {
it('should return 200 OK', function(done) {
request(app)
.get('/contact')
.expect(200, done);
});
});

describe('GET /random-url', function() {
it('should return 404', function(done) {
request(app)
.get('/reset')
.expect(404, done);
// this will fail
});
});

0 comments on commit d8488c9

Please sign in to comment.