Fix style issues
This commit is contained in:
parent
ade5d5ea21
commit
548cb6ef94
|
@ -12,7 +12,7 @@ var loopback = require('../../lib/loopback');
|
|||
*/
|
||||
|
||||
module.exports = function(RoleMapping) {
|
||||
// Principal types
|
||||
// Principal types
|
||||
RoleMapping.USER = 'USER';
|
||||
RoleMapping.APP = RoleMapping.APPLICATION = 'APP';
|
||||
RoleMapping.ROLE = 'ROLE';
|
||||
|
|
|
@ -71,7 +71,7 @@ module.exports = function(Role) {
|
|||
|
||||
});
|
||||
|
||||
// Special roles
|
||||
// Special roles
|
||||
Role.OWNER = '$owner'; // owner of the object
|
||||
Role.RELATED = '$related'; // any User with a relationship to the object
|
||||
Role.AUTHENTICATED = '$authenticated'; // authenticated user
|
||||
|
|
|
@ -838,7 +838,7 @@ describe('app', function() {
|
|||
});
|
||||
|
||||
describe('app.connector', function() {
|
||||
// any connector will do
|
||||
// any connector will do
|
||||
it('adds the connector to the registry', function() {
|
||||
app.connector('foo-bar', loopback.Memory);
|
||||
expect(app.connectors['foo-bar']).to.equal(loopback.Memory);
|
||||
|
|
Loading…
Reference in New Issue