Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleyCocos committed Jan 21, 2025
1 parent 269094c commit 36535b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void main() {
expect(androidInfo.supportedAbis, isNotNull);

expect(androidInfo.tags, isNotNull);
expect(androidInfo.time, isNonNegative);
expect(androidInfo.type, isNotNull);
expect(androidInfo.isPhysicalDevice, isNotNull);
expect(androidInfo.systemFeatures, isNotNull);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class AndroidDeviceInfo extends BaseDeviceInfo {
supported64BitAbis: _fromList(map['supported64BitAbis'] ?? <String>[]),
supportedAbis: _fromList(map['supportedAbis'] ?? []),
tags: map['tags'],
time: int.tryParse(map['time']) ?? 0,
time: map['time'] ?? 0,
type: map['type'],
isPhysicalDevice: map['isPhysicalDevice'],
systemFeatures: _fromList(map['systemFeatures'] ?? []),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const _fakeAndroidDeviceInfo = <String, dynamic>{
'host': 'host',
'tags': 'tags',
'type': 'type',
'time': '1735689600',
'time': 1735689600,
'model': 'model',
'board': 'board',
'brand': 'Google',
Expand Down

0 comments on commit 36535b9

Please sign in to comment.