check status code

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 47b2057f20
commit 0361849bb1

@ -1622,6 +1622,7 @@ describe('Controllers', function () {
it('should return osd data', function (done) {
request(nconf.get('url') + '/osd.xml', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});
@ -1637,6 +1638,7 @@ describe('Controllers', function () {
it('should handle topic malformed uri', function (done) {
request(nconf.get('url') + '/topic/1/a%AFc', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});
@ -1645,6 +1647,7 @@ describe('Controllers', function () {
it('should handle category malformed uri', function (done) {
request(nconf.get('url') + '/category/1/a%AFc', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});

Loading…
Cancel
Save