mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:27:01 +02:00
feat: remove unused code, add 2 tests
This commit is contained in:
@@ -560,6 +560,15 @@ describe('Controllers', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should load client.css', function (done) {
|
||||
request(nconf.get('url') + '/assets/client.css', function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
assert.equal(res.statusCode, 200);
|
||||
assert(body);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should load admin.css', function (done) {
|
||||
request(nconf.get('url') + '/assets/admin.css', function (err, res, body) {
|
||||
assert.ifError(err);
|
||||
|
||||
@@ -97,4 +97,12 @@ describe('file', function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('should walk directory', function (done) {
|
||||
file.walk(__dirname, function (err, data) {
|
||||
assert.ifError(err);
|
||||
assert(Array.isArray(data));
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user