mirror of
https://github.com/hmalik144/easy_cc_flutter.git
synced 2025-12-10 03:05:34 +00:00
Unit tests added
This commit is contained in:
8
test/test_utils/test_utils.dart
Normal file
8
test/test_utils/test_utils.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
Future<Map<String, dynamic>> readJson(String filePath) async {
|
||||
final String response = await rootBundle.loadString('$filePath.json');
|
||||
return await json.decode(response);
|
||||
}
|
||||
Reference in New Issue
Block a user