This commit is contained in:
Barış Soner Uşaklı
2017-12-10 11:02:48 -05:00
parent 2565b6e542
commit 2bf275fe29
6 changed files with 45 additions and 3 deletions

View File

@@ -449,6 +449,15 @@ describe('Controllers', function () {
});
});
it('should load recent rss feed', function (done) {
request(nconf.get('url') + '/top.rss', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);
done();
});
});
it('should load popular rss feed', function (done) {
request(nconf.get('url') + '/popular.rss', function (err, res, body) {
assert.ifError(err);

View File

@@ -53,6 +53,7 @@ describe('feeds', function () {
nconf.get('url') + '/topic/' + tid + '.rss',
nconf.get('url') + '/category/' + cid + '.rss',
nconf.get('url') + '/recent.rss',
nconf.get('url') + '/top.rss',
nconf.get('url') + '/popular.rss',
nconf.get('url') + '/popular/day.rss',
nconf.get('url') + '/recentposts.rss',