@@ -4,7 +4,7 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart';
44import 'package:screen_retriever/screen_retriever.dart' ;
55
66final _fakeDisplayJson = < String , dynamic > {
7- 'id' : 0 ,
7+ 'id' : '0' ,
88 'name' : 'fakeDisplay' ,
99 'size' : {'width' : 1920.0 , 'height' : 1080.0 },
1010 'visiblePosition' : {'dx' : 0.0 , 'dy' : 0.0 },
@@ -79,7 +79,7 @@ void main() {
7979 () async {
8080 Display primaryDisplay = await screenRetriever.getPrimaryDisplay ();
8181
82- expect (primaryDisplay.id, 0 );
82+ expect (primaryDisplay.id, '0' );
8383 expect (primaryDisplay.name, 'fakeDisplay' );
8484 expect (primaryDisplay.size.width, 1920.0 );
8585 expect (primaryDisplay.size.height, 1080.0 );
@@ -94,7 +94,7 @@ void main() {
9494 List <Display > displayList = await screenRetriever.getAllDisplays ();
9595
9696 expect (displayList.length, 2 );
97- expect (displayList[0 ].id, 0 );
97+ expect (displayList[0 ].id, '0' );
9898 expect (displayList[0 ].name, 'fakeDisplay' );
9999 expect (displayList[0 ].size.width, 1920.0 );
100100 expect (displayList[0 ].size.height, 1080.0 );
0 commit comments