Skip to content

Commit 6aab5b1

Browse files
committed
Add unit test
1 parent ddfba29 commit 6aab5b1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

geolocator_platform_interface/test/geolocator_platform_interface_test.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,21 @@ void main() {
165165
);
166166
});
167167

168+
test(
169+
// ignore: lines_longer_than_80_chars
170+
'Default implementation of updatePositionStream should throw unimplemented error',
171+
() {
172+
// Arrange
173+
final geolocatorPlatform = ExtendsGeolocatorPlatform();
174+
175+
// Act & Assert
176+
expect(
177+
() => geolocatorPlatform.updatePositionStream(
178+
locationSettings: LocationSettings()),
179+
throwsUnimplementedError,
180+
);
181+
});
182+
168183
test(
169184
// ignore: lines_longer_than_80_chars
170185
'Default implementation of openAppSettings should throw unimplemented error',

0 commit comments

Comments
 (0)