[Test] Add Multiple Tag Deduplication Test Case to Tasks Validation Test Suite
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- Avg merge
- 39m
- Merged PRs (30d)
- 39
Description
- Labels:
good first issue,testing,difficulty:beginner,area:core - Target File:
tests/tasks-validation.test.ts - Estimated Time: 10–15 minutes
- Difficulty: Level 2 (Beginner)
Why This Matters
Task tagging and filter utilities must ensure duplicate tag arrays (e.g., ['deep-work', 'deep-work', 'urgent']) are deduplicated cleanly so UI task cards do not render duplicate tag badges.
Current Behavior
tests/tasks-validation.test.ts tests general task validation rules, but does not explicitly test array deduplication logic for duplicate tag inputs.
Requested Change
Add a unit test case in tests/tasks-validation.test.ts asserting that task tag array processing returns deduplicated array elements (['deep-work', 'urgent']).
Acceptance Criteria
- Tag array deduplication test case added to
tests/tasks-validation.test.ts. - Test suite executes cleanly:
npm run test:file -- tests/tasks-validation.test.ts.
Verification
npm run test:file -- tests/tasks-validation.test.ts
Contributor Notes
Single test case addition.
🚀 How to Claim and Implement an Issue
- Choose an Issue: Browse our open issues and pick one matching your interest and available time.
- Comment on GitHub: Leave a comment on the corresponding GitHub issue: "I would like to work on this issue. Please assign it to me."
- Follow the Guide: Review our Beginner's Contribution Guide for step-by-step Git instructions.
- Verify Locally: Run the specific verification command listed on the issue before opening your PR.
- Submit PR: Open a pull request against
mainreferencing this issue number!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open tests/tasks-validation.test.ts and review the existing task validation tests and tag-processing assertions. Add a test for duplicate tags such as ['deep-work', 'deep-work', 'urgent'] and verify the result is ['deep-work', 'urgent']. Run npm run test:file -- tests/tasks-validation.test.ts; done means the suite passes with the new deduplication case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 92/100