forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
basic_routes.js
45 lines (39 loc) · 969 Bytes
/
basic_routes.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
var request = require('supertest');
var app = require('../server/server.js');
describe('#ROUTES', function () {
describe('GET /', function () {
it('should return 200 OK', (done) => {
request(app)
.get('/')
.expect(200, done);
});
});
describe('GET /signin', function () {
it('should return 200 OK', (done) => {
request(app)
.get('/signin')
.expect(200, done);
});
});
describe('GET /email-signup', function () {
it('should return 200 OK', (done) => {
request(app)
.get('/email-signup')
.expect(200, done);
});
});
describe('GET /random-url', function () {
it('should return 302', (done) => {
request(app)
.get('/reset')
.expect(302, done);
});
});
describe('GET /camperName', function () {
it('should return 200', (done) => {
request(app)
.get('/terakilobyte')
.expect(200, done);
});
});
});