test: Add types to getUser test file
This commit is contained in:
4
packages/backend/test/fixtures/role.ts
vendored
4
packages/backend/test/fixtures/role.ts
vendored
@@ -1,9 +1,11 @@
|
||||
import { IRole } from '@automatisch/types';
|
||||
|
||||
type RoleParams = {
|
||||
name?: string;
|
||||
key?: string;
|
||||
};
|
||||
|
||||
const createRole = async (params: RoleParams = {}) => {
|
||||
const createRole = async (params: RoleParams = {}): Promise<IRole> => {
|
||||
params.name = params?.name || 'Viewer';
|
||||
params.key = params?.key || 'viewer';
|
||||
|
||||
|
Reference in New Issue
Block a user