forked from go-packages/paypal
Tests fix
This commit is contained in:
parent
d3229e32c6
commit
bf577f049a
|
@ -322,4 +322,4 @@ c.GetCreditCards(nil)
|
|||
### Tests
|
||||
|
||||
* Unit tests: `go test`
|
||||
* Integration tests: `go test -tags=inegration`
|
||||
* Integration tests: `go test -tags=integration`
|
||||
|
|
|
@ -293,8 +293,8 @@ func TestDeleteCreditCard(t *testing.T) {
|
|||
c, _ := NewClient(testClientID, testSecret, APIBaseSandBox)
|
||||
c.GetAccessToken()
|
||||
|
||||
r1, e1 := c.DeleteCreditCard("")
|
||||
if e1 == nil || r1 != nil {
|
||||
e1 := c.DeleteCreditCard("")
|
||||
if e1 == nil {
|
||||
t.Errorf("Error is expected for invalid CC ID")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user