diff --git a/core/shared/data/migration/001.js b/core/shared/data/migration/001.js index 517ff413f2..d1540e0807 100644 --- a/core/shared/data/migration/001.js +++ b/core/shared/data/migration/001.js @@ -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"), diff --git a/core/test/ghost/api_permissions_spec.js b/core/test/ghost/api_permissions_spec.js index 0f85b159ed..bb11877025 100644 --- a/core/test/ghost/api_permissions_spec.js +++ b/core/test/ghost/api_permissions_spec.js @@ -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; }); diff --git a/core/test/ghost/permissions_spec.js b/core/test/ghost/permissions_spec.js index 4fa6c18b54..021d42694d 100644 --- a/core/test/ghost/permissions_spec.js +++ b/core/test/ghost/permissions_spec.js @@ -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); }); diff --git a/package.json b/package.json index 4f85750438..b064282e1f 100644 --- a/package.json +++ b/package.json @@ -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",