From 0361849bb1b1d04dc25fb5984ec00d3fb1ce4316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 26 Nov 2018 17:17:43 -0500 Subject: [PATCH] check status code --- test/controllers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/controllers.js b/test/controllers.js index e79d4da0db..53cdd39788 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -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(); });