From c94cbf6cd9eddf4c5d8ebb193ca44c8b731230f5 Mon Sep 17 00:00:00 2001 From: likho Date: Mon, 29 May 2023 20:19:14 +0200 Subject: [PATCH] Fix failing tests --- test/models/transactions_model_test.dart | 2 +- test/services/coins/firo/firo_wallet_test.dart | 1 + test/services/coins/manager_test.dart | 1 + test/widget_tests/transaction_card_test.dart | 4 ++++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/models/transactions_model_test.dart b/test/models/transactions_model_test.dart index 1e19f769a..7547d03fe 100644 --- a/test/models/transactions_model_test.dart +++ b/test/models/transactions_model_test.dart @@ -143,7 +143,7 @@ void main() { ] }); expect(txChunk.toString(), - "timestamp: 993260735 transactions: [\n {txid: txid, type: txType, subType: mint, value: 10, fee: 1, height: 1, confirm: true, confirmations: 1, address: address, timestamp: 1876352482, worthNow: 1, inputs: [], slateid: slateId } \n]"); + "timestamp: 993260735 transactions: [\n {txid: txid, type: txType, subType: mint, value: 10, fee: 1, height: 1, confirm: true, confirmations: 1, address: address, timestamp: 1876352482, worthNow: 1, inputs: [], slateid: slateId, numberOfMessages: null } \n]"); }); }); diff --git a/test/services/coins/firo/firo_wallet_test.dart b/test/services/coins/firo/firo_wallet_test.dart index 766df279f..68db15437 100644 --- a/test/services/coins/firo/firo_wallet_test.dart +++ b/test/services/coins/firo/firo_wallet_test.dart @@ -105,6 +105,7 @@ void main() { nonce: null, inputs: [], outputs: [], + numberOfMessages: null, ), ) .toList(); diff --git a/test/services/coins/manager_test.dart b/test/services/coins/manager_test.dart index 65a2de918..fcc246882 100644 --- a/test/services/coins/manager_test.dart +++ b/test/services/coins/manager_test.dart @@ -126,6 +126,7 @@ void main() { nonce: null, inputs: [], outputs: [], + numberOfMessages: null, ); when(wallet.transactions).thenAnswer((_) async => [ tx, diff --git a/test/widget_tests/transaction_card_test.dart b/test/widget_tests/transaction_card_test.dart index fcad532fa..d3d16b655 100644 --- a/test/widget_tests/transaction_card_test.dart +++ b/test/widget_tests/transaction_card_test.dart @@ -71,6 +71,7 @@ void main() { nonce: null, inputs: [], outputs: [], + numberOfMessages: null, )..address.value = Address( walletId: "walletId", value: "", @@ -188,6 +189,7 @@ void main() { nonce: null, inputs: [], outputs: [], + numberOfMessages: null, )..address.value = Address( walletId: "walletId", value: "", @@ -302,6 +304,7 @@ void main() { nonce: null, inputs: [], outputs: [], + numberOfMessages: null, )..address.value = Address( walletId: "walletId", value: "", @@ -410,6 +413,7 @@ void main() { nonce: null, inputs: [], outputs: [], + numberOfMessages: null, )..address.value = Address( walletId: "walletId", value: "",