Rename baseCurrency to base in ExchangeRate tests

Omar Hatem committed Jul 16, 2026 at 03:04 UTC 6a0e06b95cdab69a1a142ea77d844d575b17c199
1 file changed +6 -6
cw_core/test/amount/exchange_rate_test.dart
+6 -6
@@ -7,7 +7,7 @@ import 'package:flutter_test/flutter_test.dart';
7 void main() {
8 group('ExchangeRate', () {
9 final rate = ExchangeRate(
10 - baseCurrency: CryptoCurrency.btc,
10 + base: CryptoCurrency.btc,
11 quote: Money.parse("60000", EUR),
12 );
13
@@ -34,7 +34,7 @@ void main() {
34
35 group('Edge Cases', () {
36 final rate = ExchangeRate(
37 - baseCurrency: CryptoCurrency.btc,
37 + base: CryptoCurrency.btc,
38 quote: Money.parse("60000", EUR),
39 );
40
@@ -66,7 +66,7 @@ void main() {
66
67 test('Base currency without decimals places: JPY', () {
68 final rate = ExchangeRate(
69 - baseCurrency: JPY,
69 + base: JPY,
70 quote: Money.fromInt(1, EUR),
71 );
72
@@ -76,7 +76,7 @@ void main() {
76
77 test('Base currency with 18 decimals places: ETH', () {
78 final rate = ExchangeRate(
79 - baseCurrency: CryptoCurrency.eth,
79 + base: CryptoCurrency.eth,
80 quote: Money.fromInt(300000, EUR),
81 );
82
@@ -86,7 +86,7 @@ void main() {
86
87 test('Smalles base unit is less than smalles base unit of quote', () {
88 final rate = ExchangeRate(
89 - baseCurrency: CryptoCurrency.eth,
89 + base: CryptoCurrency.eth,
90 quote: Money.fromInt(300000, EUR),
91 );
92 expect(rate.convert(Money(BigInt.one, CryptoCurrency.eth)), Money(BigInt.zero, EUR));
@@ -98,7 +98,7 @@ void main() {
98
99 test('handle quote being 0 correctly', () {
100 final zeroRate = ExchangeRate(
101 - baseCurrency: CryptoCurrency.btc,
101 + base: CryptoCurrency.btc,
102 quote: Money(BigInt.zero, EUR),
103 );
104 expect(zeroRate.convert(Money.fromInt(100, CryptoCurrency.btc)), Money(BigInt.zero, EUR));