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

add geo (toBeGeoLatitude, toBeGeoLongitude) #538

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

Conversation

verdecchia
Copy link
Contributor

@verdecchia verdecchia commented Dec 13, 2022

What

add geographic assertions (toBeGeoLatitude, toBeGeoLongitude)

Why

I've been using jest and jest-extended for long. Few months ago I needed to make geographic
assertions to a project I was working on but I didn't found anything already done so I wrote
some custom code in my project and later refactored and open sourced to a library
(https://www.npmjs.com/package/check-geographic-coordinates). Other developers finded it useful
and used it, some of them gave to me some feedbacks in how to improve it, but I was missing the
most important one, the jest assertion syntax integration. So I decided to look at jest-exteded
more in deep, not as the user I was, but as a developer and I made this PR. Looking backward
I think I would used it directly with jest-extended.

I hope you like it and that you find useful for other developers too.
I'm glad to receive any feedback from you. Thank you, Marco Verdecchia.

Notes

Assertions based on https://www.npmjs.com/package/check-geographic-coordinates

Housekeeping

  • Unit tests
  • Documentation is up to date
  • No additional lint warnings
  • Typescript definitions are added/updated where relevant

@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

Merging #538 (e6f3cab) into main (6fbb99e) will not change coverage.
The diff coverage is 100.00%.

❗ Current head e6f3cab differs from pull request most recent head ce2ffa1. Consider uploading reports for the commit ce2ffa1 to get more accurate results

@@            Coverage Diff            @@
##              main      #538   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        75    +2     
  Lines          673       685   +12     
  Branches       289       293    +4     
=========================================
+ Hits           673       685   +12     
Impacted Files Coverage Δ
src/matchers/toBeGeoLatitude.js 100.00% <100.00%> (ø)
src/matchers/toBeGeoLongitude.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@SimenB
Copy link
Member

SimenB commented Feb 18, 2023

@verdecchia could you resolve the conflict?

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.

None yet

2 participants