Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ dev_dependencies:
sdk: flutter
hive_generator: ^1.1.0
test: ^1.14.4

flutter_icons:
android: "launcher_icon"
ios: true
Expand Down
15 changes: 15 additions & 0 deletions test/model_tests/location_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import 'package:beacon/models/location/location.dart';
import 'package:test/test.dart';

void main() {
Map<String, dynamic> dummyJson = {"lat": "100.1", "lon": "200.1"};

test('Checking if location fetch from Json is working: ', () {
Location location = Location.fromJson(dummyJson);
Copy link
Collaborator

@nb9960 nb9960 Feb 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Location model is being used inside beacon model only and PR #114 adds check for location fields too. Is there any specific use case for separate check? If not, it would be better if you both collaborate on single PR.


//location latitude
expect("100.1", location.lat);
//location longitude
expect("200.1", location.lon);
});
}