mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
JSLint updates - function spacing consistency
- updating grunt-jslint to the latest version - fixing up function spacing
This commit is contained in:
parent
60d90967e1
commit
aa659d29b6
4 changed files with 10 additions and 10 deletions
|
@ -79,7 +79,7 @@
|
||||||
t.integer('permission_id');
|
t.integer('permission_id');
|
||||||
}),
|
}),
|
||||||
|
|
||||||
knex.Schema.createTable('permissions_roles', function(t) {
|
knex.Schema.createTable('permissions_roles', function (t) {
|
||||||
t.increments().primary();
|
t.increments().primary();
|
||||||
t.integer('role_id');
|
t.integer('role_id');
|
||||||
t.integer('permission_id');
|
t.integer('permission_id');
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
knex.Schema.dropTableIfExists("roles"),
|
knex.Schema.dropTableIfExists("roles"),
|
||||||
knex.Schema.dropTableIfExists("settings"),
|
knex.Schema.dropTableIfExists("settings"),
|
||||||
knex.Schema.dropTableIfExists("permissions")
|
knex.Schema.dropTableIfExists("permissions")
|
||||||
]).then(function() {
|
]).then(function () {
|
||||||
// Drop the relation tables after the model tables?
|
// Drop the relation tables after the model tables?
|
||||||
return when.all([
|
return when.all([
|
||||||
knex.Schema.dropTableIfExists("roles_users"),
|
knex.Schema.dropTableIfExists("roles_users"),
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
should.exist(RoleModel);
|
should.exist(RoleModel);
|
||||||
|
|
||||||
beforeEach(function(done) {
|
beforeEach(function (done) {
|
||||||
helpers.resetData().then(function() {
|
helpers.resetData().then(function () {
|
||||||
done();
|
done();
|
||||||
}, done);
|
}, done);
|
||||||
});
|
});
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return RoleModel.browse();
|
return RoleModel.browse();
|
||||||
}).then(function (foundRoles) {
|
}).then(function (foundRoles) {
|
||||||
var hasRemovedId = foundRoles.any(function(role) {
|
var hasRemovedId = foundRoles.any(function (role) {
|
||||||
return role.id === 1;
|
return role.id === 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -95,8 +95,8 @@
|
||||||
|
|
||||||
should.exist(PermissionModel);
|
should.exist(PermissionModel);
|
||||||
|
|
||||||
beforeEach(function(done) {
|
beforeEach(function (done) {
|
||||||
helpers.resetData().then(function() {
|
helpers.resetData().then(function () {
|
||||||
done();
|
done();
|
||||||
}, done);
|
}, done);
|
||||||
});
|
});
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
return PermissionModel.browse();
|
return PermissionModel.browse();
|
||||||
}).then(function (foundPermissions) {
|
}).then(function (foundPermissions) {
|
||||||
var hasRemovedId = foundPermissions.any(function(permission) {
|
var hasRemovedId = foundPermissions.any(function (permission) {
|
||||||
return permission.id === 1;
|
return permission.id === 1;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
return PermissionsProvider.add(newPerm);
|
return PermissionsProvider.add(newPerm);
|
||||||
},
|
},
|
||||||
createTestPermissions = function() {
|
createTestPermissions = function () {
|
||||||
var createActions = _.map(testPerms, function (testPerm) {
|
var createActions = _.map(testPerms, function (testPerm) {
|
||||||
return createPermission(null, testPerm.act, testPerm.obj);
|
return createPermission(null, testPerm.act, testPerm.obj);
|
||||||
});
|
});
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "~0.4.1",
|
"grunt": "~0.4.1",
|
||||||
"grunt-jslint": "0.2.x",
|
"grunt-jslint": ">=0.2.6",
|
||||||
"should": "~1.2.2",
|
"should": "~1.2.2",
|
||||||
"grunt-mocha-test": "~0.4.0",
|
"grunt-mocha-test": "~0.4.0",
|
||||||
"grunt-shell": "~0.2.2",
|
"grunt-shell": "~0.2.2",
|
||||||
|
|
Loading…
Add table
Reference in a new issue