Skip to content

Commit

Permalink
Change account test to use different enum value (#1948)
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe authored Nov 7, 2024
1 parent e0b5d5d commit e9c9289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestAccount_Unmarshal(t *testing.T) {
"tos_acceptance.date",
"tos_acceptance.ip",
},
"disabled_reason": "fields_needed",
"disabled_reason": "rejected.fraud",
"errors": []map[string]interface{}{
{
"code": "invalid_value_other",
Expand Down Expand Up @@ -140,7 +140,7 @@ func TestAccount_Unmarshal(t *testing.T) {

assert.Equal(t, int64(1234567890), account.Requirements.CurrentDeadline)
assert.Equal(t, 2, len(account.Requirements.CurrentlyDue))
assert.Equal(t, AccountRequirementsDisabledReasonFieldsNeeded, account.Requirements.DisabledReason)
assert.Equal(t, AccountRequirementsDisabledReasonRejectedFraud, account.Requirements.DisabledReason)
assert.Equal(t, 1, len(account.Requirements.Errors))
assert.Equal(t, "invalid_value_other", account.Requirements.Errors[0].Code)
assert.Equal(t, 1, len(account.Requirements.EventuallyDue))
Expand Down

0 comments on commit e9c9289

Please sign in to comment.