forked from urdt/ussd
updated failed menuhandler_test
This commit is contained in:
parent
1a4ee0d3e1
commit
2383e8ead3
@ -1961,7 +1961,7 @@ func TestCheckVouchers(t *testing.T) {
|
|||||||
{ContractAddress: "0x41c188d63Qa", TokenSymbol: "MILO", TokenDecimals: "4", Balance: "200"},
|
{ContractAddress: "0x41c188d63Qa", TokenSymbol: "MILO", TokenDecimals: "4", Balance: "200"},
|
||||||
}
|
}
|
||||||
|
|
||||||
expectedSym := []byte("1:SRF\n2:MILO")
|
expectedSym := []byte("1: SRF\n2: MILO")
|
||||||
|
|
||||||
mockAccountService.On("FetchVouchers", string(publicKey)).Return(mockVouchersResponse, nil)
|
mockAccountService.On("FetchVouchers", string(publicKey)).Return(mockVouchersResponse, nil)
|
||||||
|
|
||||||
@ -2024,7 +2024,7 @@ func TestViewVoucher(t *testing.T) {
|
|||||||
|
|
||||||
// Define mock voucher data
|
// Define mock voucher data
|
||||||
mockData := map[common.DataTyp][]byte{
|
mockData := map[common.DataTyp][]byte{
|
||||||
common.DATA_VOUCHER_SYMBOLS: []byte("1:SRF\n2:MILO"),
|
common.DATA_VOUCHER_SYMBOLS: []byte("1: SRF\n2: MILO"),
|
||||||
common.DATA_VOUCHER_BALANCES: []byte("1:100\n2:200"),
|
common.DATA_VOUCHER_BALANCES: []byte("1:100\n2:200"),
|
||||||
common.DATA_VOUCHER_DECIMALS: []byte("1:6\n2:4"),
|
common.DATA_VOUCHER_DECIMALS: []byte("1:6\n2:4"),
|
||||||
common.DATA_VOUCHER_ADDRESSES: []byte("1:0xd4c288865Ce\n2:0x41c188d63Qa"),
|
common.DATA_VOUCHER_ADDRESSES: []byte("1:0xd4c288865Ce\n2:0x41c188d63Qa"),
|
||||||
|
Loading…
Reference in New Issue
Block a user