mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed tests
no issue
This commit is contained in:
parent
001db05075
commit
7f337743e9
2 changed files with 31 additions and 26 deletions
|
@ -353,31 +353,6 @@
|
|||
"action_type": "destroy",
|
||||
"object_type": "member"
|
||||
},
|
||||
{
|
||||
"name": "Browse labels",
|
||||
"action_type": "browse",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Read labels",
|
||||
"action_type": "read",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Edit labels",
|
||||
"action_type": "edit",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Add labels",
|
||||
"action_type": "add",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Delete labels",
|
||||
"action_type": "destroy",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Publish posts",
|
||||
"action_type": "publish",
|
||||
|
@ -412,6 +387,31 @@
|
|||
"name": "Retry emails",
|
||||
"action_type": "retry",
|
||||
"object_type": "email"
|
||||
},
|
||||
{
|
||||
"name": "Browse labels",
|
||||
"action_type": "browse",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Read labels",
|
||||
"action_type": "read",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Edit labels",
|
||||
"action_type": "edit",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Add labels",
|
||||
"action_type": "add",
|
||||
"object_type": "label"
|
||||
},
|
||||
{
|
||||
"name": "Delete labels",
|
||||
"action_type": "destroy",
|
||||
"object_type": "label"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -201,6 +201,11 @@ describe('Database Migration (special functions)', function () {
|
|||
permissions[65].should.be.AssignedToRoles(['Administrator', 'Editor', 'Author', 'Contributor', 'Admin Integration']);
|
||||
permissions[66].name.should.eql('Retry emails');
|
||||
permissions[66].should.be.AssignedToRoles(['Administrator', 'Editor', 'Admin Integration']);
|
||||
permissions[67].name.should.eql('Browse labels');
|
||||
permissions[68].name.should.eql('Read labels');
|
||||
permissions[69].name.should.eql('Edit labels');
|
||||
permissions[70].name.should.eql('Add labels');
|
||||
permissions[71].name.should.eql('Delete labels');
|
||||
});
|
||||
|
||||
describe('Populate', function () {
|
||||
|
@ -258,7 +263,7 @@ describe('Database Migration (special functions)', function () {
|
|||
result.roles.at(7).get('name').should.eql('Scheduler Integration');
|
||||
|
||||
// Permissions
|
||||
result.permissions.length.should.eql(67);
|
||||
result.permissions.length.should.eql(72);
|
||||
result.permissions.toJSON().should.be.CompletePermissions();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue