Skip to content

Commit

Permalink
Added test - does not pass
Browse files Browse the repository at this point in the history
  • Loading branch information
guplem committed Jan 22, 2024
1 parent 898f762 commit 3ba3d82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion geolocator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: geolocator
description: Geolocation plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API for generic location (GPS etc.) functions.
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
version: 10.1.0
version: 10.1.1

environment:
sdk: ">=2.15.0 <4.0.0"
Expand Down
9 changes: 9 additions & 0 deletions geolocator/test/geolocator_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ void main() {
expect(isLocationServiceEnabled, true);
});

test('generatePositionWithoutTimestamp', () async {
final Position? position = Position.fromMap({
'latitude': 0.0,
'longitude': 0.0,
});

expect(position != null, true);
});

test('getLastKnownPosition', () async {
final position = await Geolocator.getLastKnownPosition();

Expand Down

0 comments on commit 3ba3d82

Please sign in to comment.