Skip to content

Commit 90643b5

Browse files
committed
fix entities
1 parent d0cf454 commit 90643b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

site/src/testHelpers/entities.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,35 +2491,35 @@ export const MockWorkspaceQuota: TypesGen.WorkspaceQuota = {
24912491
budget: 100,
24922492
};
24932493

2494-
export const MockGroup: TypesGen.Group = {
2494+
export const MockGroup: TypesGen.GroupWithOrganizationInfo = {
24952495
id: "fbd2116a-8961-4954-87ae-e4575bd29ce0",
24962496
name: "Front-End",
24972497
display_name: "Front-End",
24982498
avatar_url: "https://example.com",
24992499
organization_id: MockOrganization.id,
2500+
organization_name: MockOrganization.name,
25002501
organization_display_name: MockOrganization.display_name,
25012502
members: [MockUser, MockUser2],
25022503
quota_allowance: 5,
25032504
source: "user",
25042505
total_member_count: 2,
25052506
};
25062507

2507-
const everyOneGroup = (organizationId: string): TypesGen.Group => ({
2508-
id: organizationId,
2508+
const MockEveryoneGroup: TypesGen.Group = {
2509+
id: `${MockOrganization.id}-everyone`,
25092510
name: "Everyone",
25102511
display_name: "",
2511-
organization_id: organizationId,
2512-
organization_display_name: "",
2512+
organization_id: MockOrganization.id,
25132513
members: [],
25142514
avatar_url: "",
25152515
quota_allowance: 0,
25162516
source: "user",
25172517
total_member_count: 0,
2518-
});
2518+
};
25192519

25202520
export const MockTemplateACL: TypesGen.TemplateACL = {
25212521
group: [
2522-
{ ...everyOneGroup(MockOrganization.id), role: "use" },
2522+
{ ...MockEveryoneGroup, role: "use" },
25232523
{ ...MockGroup, role: "admin" },
25242524
],
25252525
users: [{ ...MockUser, role: "use" }],

0 commit comments

Comments
 (0)