mirror of
https://github.com/strapi/strapi.git
synced 2025-10-18 11:32:42 +00:00
Fix api tests
This commit is contained in:
parent
caaa14964d
commit
9ef1bea85f
@ -98,7 +98,9 @@ const updateById = async (id, attributes) => {
|
||||
populate: ['roles'],
|
||||
});
|
||||
|
||||
if (updatedUser) {
|
||||
strapi.eventHub.emit('user.update', { user: sanitizeUser(updatedUser) });
|
||||
}
|
||||
|
||||
return updatedUser;
|
||||
};
|
||||
|
@ -844,6 +844,12 @@ describe('Role CRUD End to End', () => {
|
||||
"displayName": "Update",
|
||||
"subCategory": "general",
|
||||
},
|
||||
{
|
||||
"action": "admin::audit-logs.read",
|
||||
"category": "audit logs",
|
||||
"displayName": "Read",
|
||||
"subCategory": "options",
|
||||
},
|
||||
{
|
||||
"action": "admin::marketplace.plugins.install",
|
||||
"category": "plugins and marketplace",
|
||||
|
Loading…
x
Reference in New Issue
Block a user