mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2026-03-17 23:25:55 +00:00
Unit tests added
This commit is contained in:
13
test/resources/success_call_api.json
Normal file
13
test/resources/success_call_api.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"query": {
|
||||
"count": 1
|
||||
},
|
||||
"results": {
|
||||
"AUD_GBP": {
|
||||
"id": "AUD_GBP",
|
||||
"fr": "AUD",
|
||||
"to": "GBP",
|
||||
"val": 0.601188
|
||||
}
|
||||
}
|
||||
}
|
||||
8
test/resources/success_call_backup_api.json
Normal file
8
test/resources/success_call_backup_api.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"amount": 1.0,
|
||||
"base": "AUD",
|
||||
"date": "2022-09-23",
|
||||
"rates": {
|
||||
"GBP": 0.59483
|
||||
}
|
||||
}
|
||||
2
test/resources/test_res.env
Normal file
2
test/resources/test_res.env
Normal file
@@ -0,0 +1,2 @@
|
||||
// freecurrencyapi api key
|
||||
apiKey=12121
|
||||
Reference in New Issue
Block a user