mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
Pipeline fix
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
{
|
||||
"query": {
|
||||
"count": 1
|
||||
},
|
||||
"results": {
|
||||
"AUD_GBP": {
|
||||
"id": "AUD_GBP",
|
||||
"fr": "AUD",
|
||||
"to": "GBP",
|
||||
"val": 0.601188
|
||||
}
|
||||
"base": "AUD",
|
||||
"last_updated": 1675689300,
|
||||
"exchange_rates": {
|
||||
"GBP": 0.601188
|
||||
}
|
||||
}
|
||||
@@ -108,9 +108,9 @@ void main() {
|
||||
.thenAnswer((_) async => Future.error(backUpError));
|
||||
|
||||
// Then
|
||||
expect(() async => await sut.getConversationRateFromApi(fromCurrency, toCurrency),
|
||||
throwsA(predicate((e) =>
|
||||
e is HttpException &&
|
||||
e.message == 'Error message')));
|
||||
expect(() async =>
|
||||
await sut.getConversationRateFromApi(fromCurrency, toCurrency),
|
||||
throwsA(predicate(
|
||||
(e) => e is HttpException && e.message == 'Error message')));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user