Skip to content

Commit

Permalink
Fixed unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
larryaasen committed Dec 14, 2023
1 parent 7b705fa commit 23acdaf
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/device_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,22 @@ Map _androidInfo({required String baseOS}) {
}

Map _iosInfo({required String baseOS}) {
const iosUtsnameMap = <String, dynamic>{
'release': 'release',
'version': 'version',
'machine': 'machine',
'sysname': 'sysname',
'nodename': 'nodename',
};
final info = {
'name': 'name',
'model': 'model',
'utsname': iosUtsnameMap,
'systemName': 'systemName',
'isPhysicalDevice': 'false',
'systemVersion': baseOS,
'localizedModel': 'localizedModel',
'identifierForVendor': 'identifierForVendor',
};
return info;
}
Expand Down

0 comments on commit 23acdaf

Please sign in to comment.