X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b323a94f313671b44a066a2f91dea562e9464d10..5cefad212822a48c83af1d38cbe14368c0cb1a20:/src/models/test-utils.ts diff --git a/src/models/test-utils.ts b/src/models/test-utils.ts index 3f49dba6..1e1041a1 100644 --- a/src/models/test-utils.ts +++ b/src/models/test-utils.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { GroupResource, GroupClass } from "./group"; +import { GroupClass, GroupResource } from "./group"; import { Resource, ResourceKind } from "./resource"; import { ProjectResource } from "./project"; @@ -14,7 +14,7 @@ export const mockGroupResource = (data: Partial = {}): GroupResou groupClass: null, href: "", isTrashed: false, - kind: ResourceKind.Group, + kind: ResourceKind.GROUP, modifiedAt: "", modifiedByClientUuid: "", modifiedByUserUuid: "", @@ -23,18 +23,19 @@ export const mockGroupResource = (data: Partial = {}): GroupResou properties: "", trashAt: "", uuid: "", - writeableBy: [], + writableBy: [], + ensure_unique_name: true, ...data }); export const mockProjectResource = (data: Partial = {}): ProjectResource => - mockGroupResource({ ...data, groupClass: GroupClass.Project }) as ProjectResource; + mockGroupResource({ ...data, groupClass: GroupClass.PROJECT }) as ProjectResource; export const mockCommonResource = (data: Partial): Resource => ({ createdAt: "", etag: "", href: "", - kind: "", + kind: ResourceKind.NONE, modifiedAt: "", modifiedByClientUuid: "", modifiedByUserUuid: "",