github.com/stripe/stripe-go/v76@v76.25.0/identity/verificationreport/client_test.go (about)

     1  package verificationreport
     2  
     3  import (
     4  	"testing"
     5  
     6  	assert "github.com/stretchr/testify/require"
     7  	stripe "github.com/stripe/stripe-go/v76"
     8  	_ "github.com/stripe/stripe-go/v76/testing"
     9  )
    10  
    11  func TestIdentityVerificationReportGet(t *testing.T) {
    12  	report, err := Get("vr_123", nil)
    13  	assert.Nil(t, err)
    14  	assert.NotNil(t, report)
    15  	assert.Equal(t, "identity.verification_report", report.Object)
    16  }
    17  
    18  func TestIdentityVerificationReportList(t *testing.T) {
    19  	i := List(&stripe.IdentityVerificationReportListParams{})
    20  
    21  	assert.True(t, i.Next())
    22  	assert.Nil(t, i.Err())
    23  	assert.NotNil(t, i.IdentityVerificationReport())
    24  	assert.Equal(t, "identity.verification_report", i.IdentityVerificationReport().Object)
    25  	assert.NotNil(t, i.IdentityVerificationReportList())
    26  }