JSLint updates - function spacing consistency

- updating grunt-jslint to the latest version
- fixing up function spacing
This commit is contained in:
Hannah Wolfe 2013-06-06 21:38:12 +01:00
parent 60d90967e1
commit aa659d29b6
4 changed files with 10 additions and 10 deletions

View File

@ -79,7 +79,7 @@
t.integer('permission_id');
}),
knex.Schema.createTable('permissions_roles', function(t) {
knex.Schema.createTable('permissions_roles', function (t) {
t.increments().primary();
t.integer('role_id');
t.integer('permission_id');
@ -120,7 +120,7 @@
knex.Schema.dropTableIfExists("roles"),
knex.Schema.dropTableIfExists("settings"),
knex.Schema.dropTableIfExists("permissions")
]).then(function() {
]).then(function () {
// Drop the relation tables after the model tables?
return when.all([
knex.Schema.dropTableIfExists("roles_users"),

View File

@ -14,8 +14,8 @@
should.exist(RoleModel);
beforeEach(function(done) {
helpers.resetData().then(function() {
beforeEach(function (done) {
helpers.resetData().then(function () {
done();
}, done);
});
@ -78,7 +78,7 @@
}).then(function () {
return RoleModel.browse();
}).then(function (foundRoles) {
var hasRemovedId = foundRoles.any(function(role) {
var hasRemovedId = foundRoles.any(function (role) {
return role.id === 1;
});
@ -95,8 +95,8 @@
should.exist(PermissionModel);
beforeEach(function(done) {
helpers.resetData().then(function() {
beforeEach(function (done) {
helpers.resetData().then(function () {
done();
}, done);
});
@ -157,7 +157,7 @@
}).then(function () {
return PermissionModel.browse();
}).then(function (foundPermissions) {
var hasRemovedId = foundPermissions.any(function(permission) {
var hasRemovedId = foundPermissions.any(function (permission) {
return permission.id === 1;
});

View File

@ -47,7 +47,7 @@
return PermissionsProvider.add(newPerm);
},
createTestPermissions = function() {
createTestPermissions = function () {
var createActions = _.map(testPerms, function (testPerm) {
return createPermission(null, testPerm.act, testPerm.obj);
});

View File

@ -23,7 +23,7 @@
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-jslint": "0.2.x",
"grunt-jslint": ">=0.2.6",
"should": "~1.2.2",
"grunt-mocha-test": "~0.4.0",
"grunt-shell": "~0.2.2",