From 85b5d93678902b113b5394b94d047dd38f356029 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Wed, 5 Mar 2014 16:02:55 -0500 Subject: [PATCH] Add additional supertest tests for /signup, /api, /contact and /login --- test/app.js | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/test/app.js b/test/app.js index d02784c7468..18bf953a717 100644 --- a/test/app.js +++ b/test/app.js @@ -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 }); }); \ No newline at end of file