Skip to content

Commit be98474

Browse files
committed
wip: fix unit test ci
1 parent 279f9b6 commit be98474

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/screen_retriever/test/screen_retriever_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart';
44
import 'package:screen_retriever/screen_retriever.dart';
55

66
final _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

Comments
 (0)