aakoch / timesheet

Javascript/Node program to parse a file with timestamps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"and counting" showing for other days

aakoch opened this issue · comments

The "and counting" text should only be written for the current day

Creating a test was easy. I just added this line to the issue_3.spec.js file:
t.same(report.split('\n')[0], '2022-08-10 total is 3 hours, 49 minutes') // <-- Issue 8

Problem is, the "interval" for a day that doesn't clock out is a string -- the same as an interval still running. This will require tweaking the "interval". Since I had already planned on this for the 0.2.0 milestone, I'll work on it as part of that.