Skip to content

Commit

Permalink
Merge pull request #20 from Xaxxis/main
Browse files Browse the repository at this point in the history
Bump version and fix unit test related 8 bin update
  • Loading branch information
Zaki Ibrahim authored Aug 5, 2022
2 parents a7a0428 + 0010d0f commit e3c6ffc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions coreapi/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func TestRegisterCard(t *testing.T) {
midtrans.ClientKey = sandboxClientKey
resp1, _ := RegisterCard(sampleCardNumber, 12, year)
assert.Equal(t, resp1.StatusCode, "200")
assert.Equal(t, resp1.MaskCard, "481111-1114")
assert.Equal(t, resp1.MaskCard, "48111111-1114")

c := Client{}
c.New(sandboxServerKey, midtrans.Sandbox)
resp2, _ := c.RegisterCard(bniCardNumber, 12, year, sandboxClientKey)
assert.Equal(t, resp2.StatusCode, "200")
assert.Equal(t, resp2.MaskCard, "410505-1467")
assert.Equal(t, resp2.MaskCard, "41050586-1467")
}

func TestCardToken(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions coreapi/clienttokenization_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package coreapi

import (
"log"
"testing"

"github.com/midtrans/midtrans-go"
assert "github.com/stretchr/testify/require"
"log"
"testing"
)

/*
Expand Down
2 changes: 1 addition & 1 deletion midtrans.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
Production

//libraryVersion : midtrans go library version
libraryVersion = "v1.3.3"
libraryVersion = "v1.3.4"
)

//ServerKey is config payment API key for global use
Expand Down

0 comments on commit e3c6ffc

Please sign in to comment.