Skip to content

Commit

Permalink
wip: fix unit test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Aug 18, 2024
1 parent 279f9b6 commit be98474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/screen_retriever/test/screen_retriever_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:screen_retriever/screen_retriever.dart';

final _fakeDisplayJson = <String, dynamic>{
'id': 0,
'id': '0',
'name': 'fakeDisplay',
'size': {'width': 1920.0, 'height': 1080.0},
'visiblePosition': {'dx': 0.0, 'dy': 0.0},
Expand Down Expand Up @@ -79,7 +79,7 @@ void main() {
() async {
Display primaryDisplay = await screenRetriever.getPrimaryDisplay();

expect(primaryDisplay.id, 0);
expect(primaryDisplay.id, '0');
expect(primaryDisplay.name, 'fakeDisplay');
expect(primaryDisplay.size.width, 1920.0);
expect(primaryDisplay.size.height, 1080.0);
Expand All @@ -94,7 +94,7 @@ void main() {
List<Display> displayList = await screenRetriever.getAllDisplays();

expect(displayList.length, 2);
expect(displayList[0].id, 0);
expect(displayList[0].id, '0');
expect(displayList[0].name, 'fakeDisplay');
expect(displayList[0].size.width, 1920.0);
expect(displayList[0].size.height, 1080.0);
Expand Down

0 comments on commit be98474

Please sign in to comment.