forked from sahat/hackathon-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
50 lines (44 loc) · 1003 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
var request = require('supertest');
var app = require('../app.js');
describe('GET /', function() {
it('should return 200 OK', function(done) {
request(app)
.get('/')
.expect(200, done);
});
});
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);
});
});