mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 00:40:23 +01:00
closes #6132
This commit is contained in:
@@ -352,6 +352,15 @@ describe('Controllers', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should 404 on /outgoing with invalid url', function (done) {
|
||||
request(nconf.get('url') + '/outgoing?url=derp', function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert.equal(res.statusCode, 404);
|
||||
assert(body);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should load /tos', function (done) {
|
||||
meta.config.termsOfUse = 'please accept our tos';
|
||||
request(nconf.get('url') + '/tos', function (err, res, body) {
|
||||
|
||||
Reference in New Issue
Block a user