diff --git a/pubspec.lock b/pubspec.lock index 19332f51..77672525 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1030,7 +1030,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.3" + version: "0.4.8" test_core: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index c010283b..3269a230 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -51,7 +51,6 @@ dev_dependencies: sdk: flutter hive_generator: ^1.1.0 test: ^1.14.4 - flutter_icons: android: "launcher_icon" ios: true diff --git a/test/model_tests/location_test.dart b/test/model_tests/location_test.dart new file mode 100644 index 00000000..12b12819 --- /dev/null +++ b/test/model_tests/location_test.dart @@ -0,0 +1,15 @@ +import 'package:beacon/models/location/location.dart'; +import 'package:test/test.dart'; + +void main() { + Map dummyJson = {"lat": "100.1", "lon": "200.1"}; + + test('Checking if location fetch from Json is working: ', () { + Location location = Location.fromJson(dummyJson); + + //location latitude + expect("100.1", location.lat); + //location longitude + expect("200.1", location.lon); + }); +}