fix linting errors

This commit is contained in:
Esco Obong 2015-03-13 18:30:53 -04:00
parent c764c09837
commit 551261ec16
2 changed files with 13 additions and 13 deletions

View File

@ -63,7 +63,7 @@ module.exports = function(Role) {
*/
Role.prototype[pluralName] = function(query, callback) {
listByPrincipalType(model, principalType, query, callback);
}
};
});
/**

View File

@ -234,7 +234,7 @@ describe('role model', function() {
mappings.forEach(function(principalType) {
var Model = principalTypesToModels[principalType];
Model.create({name:"test", email:'x@y.com', password: 'foobar'}, function(err, model){
Model.create({name:'test', email:'x@y.com', password: 'foobar'}, function(err, model) {
Role.create({name:'testRole'}, function(err, role) {
role.principals.create({principalType: principalType, principalId: model.id}, function(err, p) {
var pluralName = Model.pluralModelName.toLowerCase();
@ -246,8 +246,8 @@ describe('role model', function() {
}
});
});
})
})
});
});
});
});
@ -268,6 +268,6 @@ describe('role model', function() {
});
});
});
})
});
});