Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Dec 1, 2024
1 parent 2798bc1 commit 86cfeb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client_option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestWithHTTPClient(t *testing.T) {
})
}

func TestWithApiURL(t *testing.T) {
func TestWithAPIURL(t *testing.T) {
t.Run("apiURL is set successfully", func(t *testing.T) {
// Setup
t.Parallel()
Expand All @@ -49,7 +49,7 @@ func TestWithApiURL(t *testing.T) {
config := defaultClientConfig()

// Act
WithApiURL(apiURL).apply(config)
WithAPIURL(apiURL).apply(config)

// Assert
assert.Equal(t, apiURL, config.apiURL)
Expand All @@ -64,7 +64,7 @@ func TestWithApiURL(t *testing.T) {
config := defaultClientConfig()

// Act
WithApiURL(apiURL).apply(config)
WithAPIURL(apiURL).apply(config)

// Assert
assert.Equal(t, "https://example.com", config.apiURL)
Expand Down
2 changes: 1 addition & 1 deletion refund_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestRefundService_Refund(t *testing.T) {
payload := &RefundParams{
ChannelUserMsisdn: "699999999",
Pin: "0000",
Webhook: "https://api.nyangapay.com/v1/y-note",
Webhook: "https://example.com/webhook",
Amount: "100",
FinalCustomerPhone: "699999999",
FinalCustomerName: "",
Expand Down

0 comments on commit 86cfeb5

Please sign in to comment.