mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 12:44:31 +00:00
add externalCalls pref mock
This commit is contained in:
parent
ba0eb9636d
commit
fa9aad14f1
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,7 @@ void main() {
|
||||||
when(wallet.coin.ticker).thenAnswer((_) => "FIRO");
|
when(wallet.coin.ticker).thenAnswer((_) => "FIRO");
|
||||||
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
||||||
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
||||||
|
when(mockPrefs.externalCalls).thenAnswer((_) => true);
|
||||||
when(mockPriceService.getPrice(Coin.firo))
|
when(mockPriceService.getPrice(Coin.firo))
|
||||||
.thenAnswer((realInvocation) => Tuple2(Decimal.ten, 0.00));
|
.thenAnswer((realInvocation) => Tuple2(Decimal.ten, 0.00));
|
||||||
|
|
||||||
|
@ -162,6 +163,7 @@ void main() {
|
||||||
when(wallet.coin.ticker).thenAnswer((_) => "FIRO");
|
when(wallet.coin.ticker).thenAnswer((_) => "FIRO");
|
||||||
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
||||||
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
||||||
|
when(mockPrefs.externalCalls).thenAnswer((_) => true);
|
||||||
when(mockPriceService.getPrice(Coin.firo))
|
when(mockPriceService.getPrice(Coin.firo))
|
||||||
.thenAnswer((realInvocation) => Tuple2(Decimal.ten, 0.00));
|
.thenAnswer((realInvocation) => Tuple2(Decimal.ten, 0.00));
|
||||||
|
|
||||||
|
@ -245,6 +247,7 @@ void main() {
|
||||||
when(wallet.coin.ticker).thenAnswer((_) => "FIRO");
|
when(wallet.coin.ticker).thenAnswer((_) => "FIRO");
|
||||||
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
when(mockLocaleService.locale).thenAnswer((_) => "en_US");
|
||||||
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
when(mockPrefs.currency).thenAnswer((_) => "USD");
|
||||||
|
when(mockPrefs.externalCalls).thenAnswer((_) => true);
|
||||||
when(mockPriceService.getPrice(Coin.firo))
|
when(mockPriceService.getPrice(Coin.firo))
|
||||||
.thenAnswer((realInvocation) => Tuple2(Decimal.ten, 0.00));
|
.thenAnswer((realInvocation) => Tuple2(Decimal.ten, 0.00));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue