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

Solves missing date problem on dateObserved #5

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

Conversation

mjimenezganan
Copy link

When a dataObserved is missing, method displayDate crashed. Two solutions incorporated, pick dateModified if available, and not include date information if missing.

It is not compared when dateModified is directly used (without invoking displayDate, but using moments.js directly. Not solved since intended behaviour might change, but avoiding an empty line if no such dateModified is still pending.

@coveralls
Copy link

coveralls commented Nov 18, 2019

Pull Request Test Coverage Report for Build 11

  • 15 of 23 (65.22%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+8.2%) to 38.532%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/js/main.js 15 23 65.22%
Totals Coverage Status
Change from base Build 7: 8.2%
Covered Lines: 281
Relevant Lines: 674

💛 - Coveralls

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.

3 participants