Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
beransantur committed Feb 19, 2024
1 parent 47a9c06 commit 1628957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func Test_main(t *testing.T) {
client, _ := craftgate.New("api-key", "secret-key", "https://sandbox-api.craftgate.io")

t.Run("Create a API request that should fail", func(t *testing.T) {
binNumber, err := client.Installment.RetrieveBinNumber(context.Background(), "487074")
binNumber, err := client.Installment.RetrieveBinNumber(context.Background(), "48707421")
require.NotNil(t, err)
require.Nil(t, binNumber)
assert.Equal(t, true, strings.Contains(err.Error(), "API credential not found!"))
assert.Equal(t, true, strings.Contains(err.Error(), "API credential not found"))
})
})
}

0 comments on commit 1628957

Please sign in to comment.