feat: set up project
This commit is contained in:
15
internal/services/btc/get_transaction_test.go
Normal file
15
internal/services/btc/get_transaction_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package btc
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func Test_bitcoinService_GetTransaction(t *testing.T) {
|
||||
th := newTestHelper()
|
||||
txid := "1dd9a1be3dc4feba3031cda110bd043535bc170a34a7664b231ccda3c3928e93"
|
||||
trx, err := th.b.getTransaction(txid)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, trx.Txid, txid)
|
||||
}
|
||||
Reference in New Issue
Block a user