v1.18.x
Julian Lam 9 years ago
parent b5f8fc815e
commit 995f8296a4

@ -1,6 +1,6 @@
(function (exports) {
'use strict';
(function (exports) {
/* globals define, utils, config */
// export the class if we are in a Node-like system.

@ -68,7 +68,7 @@ module.exports = function (privileges) {
},
function (cid, next) {
privileges.categories.can(privilege, cid, uid, next);
}
},
], callback);
};

@ -7,8 +7,6 @@ var db = require('./mocks/databasemock');
var helpers = require('../public/src/modules/helpers');
describe('helpers', function () {
it('should return false if item doesn\'t exist', function (done) {
var flag = helpers.displayMenuItem({ navigation: [] }, 0);
assert(!flag);
@ -21,8 +19,8 @@ describe('helpers', function () {
navigation: [{ route: '/users' }],
privateUserInfo: true,
config: {
loggedIn: false
}
loggedIn: false,
},
}, 0);
assert(!flag);
done();
@ -33,8 +31,8 @@ describe('helpers', function () {
navigation: [{ route: '/tags' }],
privateTagListing: true,
config: {
loggedIn: false
}
loggedIn: false,
},
}, 0);
assert(!flag);
done();
@ -51,5 +49,4 @@ describe('helpers', function () {
assert.equal(str, 'gdkfhgk < some > and &');
done();
});
});

Loading…
Cancel
Save