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

Improved test for Time view (100%) #444

Merged
merged 2 commits into from
Oct 14, 2020

Conversation

bobsany16
Copy link
Contributor

Improved unit test for Time view related to issue #124 and PR #428

Changes:

  • I extracted date and time outside of setInterval() by declaring a method getDateTime() so that getNow() would call setInterval() which calls getDateTime().
  • Added 2 tests to check if date and time are rendered correctly and they did.
  • Coverage remains 100% for lines, functions, branches, and statements.

Screen Shot 2020-10-12 at 2 32 41 PM

@jayehernandez
Copy link
Owner

Awesome!! Glad you were able to figure it out, thank you for contributing again @bobsany16!!

@jayehernandez jayehernandez merged commit e396a39 into jayehernandez:master Oct 14, 2020
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.

2 participants