refactor(profile): update ProfileRepository to include MockRef for improved testing and enhance error handling in API calls

This commit is contained in:
Nils-Johan Gynther
2026-04-23 18:01:13 +02:00
parent 2256ddb29b
commit 5644101b68
2 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class ApiClient {
if (token != null) 'Authorization': 'Bearer $token',
};
Future<dynamic> getJson(String path, {String? token}) async {
Future<Map<String, dynamic>> getJson(String path, {String? token}) async {
final response = await _client.get(
Uri.parse('$baseUrl$path'),
headers: _headers(token: token),