mirror of
https://github.com/strapi/strapi.git
synced 2025-10-19 12:02:38 +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'],
|
populate: ['roles'],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (updatedUser) {
|
||||||
strapi.eventHub.emit('user.update', { user: sanitizeUser(updatedUser) });
|
strapi.eventHub.emit('user.update', { user: sanitizeUser(updatedUser) });
|
||||||
|
}
|
||||||
|
|
||||||
return updatedUser;
|
return updatedUser;
|
||||||
};
|
};
|
||||||
|
@ -844,6 +844,12 @@ describe('Role CRUD End to End', () => {
|
|||||||
"displayName": "Update",
|
"displayName": "Update",
|
||||||
"subCategory": "general",
|
"subCategory": "general",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"action": "admin::audit-logs.read",
|
||||||
|
"category": "audit logs",
|
||||||
|
"displayName": "Read",
|
||||||
|
"subCategory": "options",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"action": "admin::marketplace.plugins.install",
|
"action": "admin::marketplace.plugins.install",
|
||||||
"category": "plugins and marketplace",
|
"category": "plugins and marketplace",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user