mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	This commit is contained in:
		| @@ -118,6 +118,19 @@ describe('Controllers', function () { | ||||
| 			}); | ||||
| 		}); | ||||
|  | ||||
| 		it('should load top', function (done) { | ||||
| 			meta.configs.set('homePageRoute', 'top', function (err) { | ||||
| 				assert.ifError(err); | ||||
|  | ||||
| 				request(nconf.get('url'), function (err, res, body) { | ||||
| 					assert.ifError(err); | ||||
| 					assert.equal(res.statusCode, 200); | ||||
| 					assert(body); | ||||
| 					done(); | ||||
| 				}); | ||||
| 			}); | ||||
| 		}); | ||||
|  | ||||
| 		it('should load popular', function (done) { | ||||
| 			meta.configs.set('homePageRoute', 'popular', function (err) { | ||||
| 				assert.ifError(err); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user