Skip to content

Commit

Permalink
increase tests of status api a tad
Browse files Browse the repository at this point in the history
  • Loading branch information
bewest committed Aug 5, 2016
1 parent 37cde41 commit 69e6be5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/api.status.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,27 @@ describe('Status REST api', function ( ) {
});
});

it('/status.svg', function (done) {
request(this.app)
.get('/api/status.svg')
.end(function(err, res) {
res.statusCode.should.equal(302);
done();
});
});

it('/status.txt', function (done) {
request(this.app)
.get('/api/status.txt')
.expect(200, 'STATUS OK')
.end(function(err, res, body) {
res.type.should.equal('text/plain');
res.statusCode.should.equal(200);
done();
});
});


it('/status.js', function (done) {
request(this.app)
.get('/api/status.js')
Expand Down

0 comments on commit 69e6be5

Please sign in to comment.