feat: add support for unit testing using vitest in editor-ui (#4184)
* feat: add support for unit testing using vitest in editor-ui * fix(editor): update tsconfig types and typeRoots * chore(editor): update package-lock.json
This commit is contained in:
@@ -32,7 +32,7 @@ export type IPermissionsTable = IPermissionsTableRow[];
|
||||
* @param user
|
||||
* @param table
|
||||
*/
|
||||
const parsePermissionsTable = (user: IUser, table: IPermissionsTable): IPermissions => {
|
||||
export const parsePermissionsTable = (user: IUser, table: IPermissionsTable): IPermissions => {
|
||||
const genericTable = [
|
||||
{ name: UserRole.InstanceOwner, test: () => user.isOwner },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user