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

test(server) adds a test case to taskManager #15182

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

drob
Copy link

@drob drob commented Mar 31, 2024

The new test covers the case in which getTasks is invoked with a dueDate parameter. None of the existing test cases covers this case.

The new test case aims to verify the behavior of getTasks when a dueDate is provided, ensuring that the nextDue property is properly set for daily tasks based on the given dueDate.

This adds new test coverage:

  • 3 lines in server/libs/tasks/utils.js, in setNextDue
  • 20 lines in server/libs/tasks/index.js, mostly in getTasks

The new test covers the case in which `getTasks` is invoked with a `dueDate` parameter. None of the existing test cases covers this case.

The new test case aims to verify the behavior of `getTasks` when a `dueDate` is provided, ensuring that the `nextDue` property is properly set for daily tasks based on the given dueDate.

The new test adds new coverage:
- 3 lines in server/libs/tasks/utils.js, in `setNextDue`
- 20 lines in server/libs/tasks/index.js, mostly in `getTasks`
@drob drob changed the title Adds a test case to taskManager. test(server) adds a test case to taskManager Mar 31, 2024
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.

None yet

1 participant