File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/device_info_plus/device_info_plus/test/model Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ void main() {
1717 iosDeviceInfoMap = < String , dynamic > {
1818 'name' : 'name' ,
1919 'model' : 'model' ,
20+ 'modelName' : 'modelName' ,
2021 'utsname' : iosUtsnameMap,
2122 'systemName' : 'systemName' ,
2223 'isPhysicalDevice' : true ,
@@ -32,6 +33,7 @@ void main() {
3233 test ('fromMap should return $IosDeviceInfo with correct values' , () {
3334 expect (iosDeviceInfo.name, 'name' );
3435 expect (iosDeviceInfo.model, 'model' );
36+ expect (iosDeviceInfo.modelName, 'modelName' );
3537 expect (iosDeviceInfo.isPhysicalDevice, isTrue);
3638 expect (iosDeviceInfo.isiOSAppOnMac, isTrue);
3739 expect (iosDeviceInfo.systemName, 'systemName' );
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ void main() {
88 group ('fromMap | data' , () {
99 const macosDeviceInfoMap = < String , dynamic > {
1010 'arch' : 'arch' ,
11+ 'model' : 'Mac16,2' ,
1112 'modelName' : 'iMac (24-inch, 2024)' ,
12- 'modelIdentifier' : 'Mac16,2' ,
1313 'activeCPUs' : 4 ,
1414 'memorySize' : 16 ,
1515 'cpuFrequency' : 2 ,
@@ -25,10 +25,9 @@ void main() {
2525
2626 test ('fromMap should return $MacOsDeviceInfo with correct values' , () {
2727 final macosDeviceInfo = MacOsDeviceInfo .fromMap (macosDeviceInfoMap);
28-
2928 expect (macosDeviceInfo.arch, 'arch' );
29+ expect (macosDeviceInfo.model, 'Mac16,2' );
3030 expect (macosDeviceInfo.modelName, 'iMac (24-inch, 2024)' );
31- expect (macosDeviceInfo.modelIdentifier, 'Mac16,2' );
3231 expect (macosDeviceInfo.activeCPUs, 4 );
3332 expect (macosDeviceInfo.memorySize, 16 );
3433 expect (macosDeviceInfo.cpuFrequency, 2 );
You can’t perform that action at this time.
0 commit comments