Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
felixlut committed Sep 22, 2024
1 parent 62bc855 commit 68caaad
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions github/orgs_custom_roles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func TestOrganizationsService_GetOrgRole(t *testing.T) {
"name": "all_repo_read",
"description": "Grants read access to all repositories in the organization.",
"permissions": [],
"created_at": ` + referenceTimeStr + `,
"updated_at": ` + referenceTimeStr + `,
"created_at": `+referenceTimeStr+`,
"updated_at": `+referenceTimeStr+`,
"source": "Predefined",
"base_role": "read"
}`)
Expand All @@ -129,10 +129,10 @@ func TestOrganizationsService_GetOrgRole(t *testing.T) {
Name: String("all_repo_read"),
Description: String("Grants read access to all repositories in the organization."),
Permissions: []string{},
CreatedAt: &Timestamp{referenceTime},
UpdatedAt: &Timestamp{referenceTime},
Source: String("Predefined"),
BaseRole: String("read"),
CreatedAt: &Timestamp{referenceTime},
UpdatedAt: &Timestamp{referenceTime},
Source: String("Predefined"),
BaseRole: String("read"),
}

if !cmp.Equal(gotBuiltInRole, wantBuiltInRole) {
Expand All @@ -151,8 +151,8 @@ func TestOrganizationsService_GetOrgRole(t *testing.T) {
"read_organization_custom_repo_role",
"write_organization_custom_org_role"
],
"created_at": ` + referenceTimeStr + `,
"updated_at": ` + referenceTimeStr + `,
"created_at": `+referenceTimeStr+`,
"updated_at": `+referenceTimeStr+`,
"source": "Organization",
"base_role": null
}`)
Expand All @@ -172,10 +172,10 @@ func TestOrganizationsService_GetOrgRole(t *testing.T) {
"read_organization_custom_repo_role",
"write_organization_custom_org_role",
},
CreatedAt: &Timestamp{referenceTime},
UpdatedAt: &Timestamp{referenceTime},
Source: String("Organization"),
BaseRole: nil,
CreatedAt: &Timestamp{referenceTime},
UpdatedAt: &Timestamp{referenceTime},
Source: String("Organization"),
BaseRole: nil,
}

if !cmp.Equal(gotCustomRole, wantCustomRole) {
Expand Down

0 comments on commit 68caaad

Please sign in to comment.