This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lastMonday not working as expected :(
`npm run unittest -- --grep="update date handling"` Auditors: @aekeus
- Loading branch information
b5639b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the function needs to be clearer. It should be
todayOrLastMonday
.If the current date is a Monday, it should return the current date.
b5639b9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah- good call (I see it now- day is a number 0-6, not day of month) 😄 I'll add a test to make it clear