Skip to content

Commit

Permalink
test: IgnoreDotsForGmailAddresses restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasLopes7 committed May 2, 2024
1 parent cb34d29 commit 08385ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clerk/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type InstanceRestrictionsResponse struct {
Blocklist bool `json:"blocklist"`
BlockEmailSubaddresses bool `json:"block_email_subaddresses"`
BlockDisposableEmailDomains bool `json:"block_disposable_email_domains"`
IgnoreDotsForGmailAddresses *bool `json:"ignore_dots_for_gmail_addresses,omitempty"`
IgnoreDotsForGmailAddresses bool `json:"ignore_dots_for_gmail_addresses,omitempty"`
}

type UpdateRestrictionsParams struct {
Expand Down
1 change: 1 addition & 0 deletions clerk/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func TestInstanceService_UpdateRestrictions_happyPath(t *testing.T) {
Blocklist: &enabled,
BlockEmailSubaddresses: &enabled,
BlockDisposableEmailDomains: &enabled,
IgnoreDotsForGmailAddresses: &enabled,
})

assert.Equal(t, &restrictionsResponse, got)
Expand Down
1 change: 1 addition & 0 deletions tests/integration/instances_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func TestInstanceRestrictions(t *testing.T) {
assert.True(t, restrictionsResponse.Blocklist)
assert.False(t, restrictionsResponse.BlockEmailSubaddresses)
assert.False(t, restrictionsResponse.BlockDisposableEmailDomains)
assert.False(t, restrictionsResponse.IgnoreDotsForGmailAddresses)
}

func TestInstanceOrganizationSettings(t *testing.T) {
Expand Down

0 comments on commit 08385ed

Please sign in to comment.