Skip to content

Commit

Permalink
comment: Add a TODO to Postponer.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Dec 11, 2023
1 parent 4bf73ff commit ad0c9bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Scripting/Postponer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ describe('postpone - UI text', () => {

it('should include date type and new date in context menu labels', () => {
const task = new TaskBuilder().dueDate(today).build();
// TODO This text is misleading if the date is already in the future.
// In that case, it should still be 'Postpone'???
expect(postponeMenuItemTitle(task, 1, 'day')).toEqual('Due in a day, on Mon 4th Dec');
expect(postponeMenuItemTitle(task, 2, 'days')).toEqual('Due in 2 days, on Tue 5th Dec');
});
Expand Down

0 comments on commit ad0c9bd

Please sign in to comment.