Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added location_model_test #115

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ItsAdityaKSingh
Copy link
Collaborator

Partly fixes #46

Describe the changes you have made in this PR - Added tests for location model

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.

@nb9960
Copy link
Collaborator

nb9960 commented Mar 2, 2022

Please resolve the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Tests]: Write Test for beacon project.
2 participants