Test Failing 🐛
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- testing-qa
Research direction
Start in test.js around the linked lines and inspect the test for logic.oldestRepo, then read that function to understand how new Date() affects the expected age. Update the failing test so its expectation remains valid as time passes, and consider whether the dummy object belongs in a separate file for readability. Done means the test passes reliably.
Written by the indexing model from the issue text.
Description
https://github.com/fac-14/NDJS-API/blob/df236cfbc24fd346a72ea94df533a134282921c7/test.js#L1068-L107
Really nice work with the tests - might be sensible to put the dummy object in a separate file for ease f use / readability.
Main issue though is that this test is failing because you have hard coded the expected value, but the logic.oldestRepo function uses new Date() to establish age in days of the oldest repo. I am assuming you wrote this test yesterday, since as of today the oldes repo in the dummy object is 311, not 310 days... 🤓
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from fac-14/NDJS-API
-
README needs contentOpen
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Readability 📖Open
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Duplicated codeOpen
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CopilotKit/aimock#491 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
keyxmakerx/Chronicle#967 ·
Maintainers usually reply within 1 day
-
good first issue hacktoberfest
Difficulty 1/5 Under an hour Newbie friendliness 92/100
RogueAlg0/taken#386 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
DietrichGebert/ponytail#978 ·
Maintainers usually reply within 2 days
-
bug component: bulk editor support
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Yoast/wordpress-seo#23669 ·
Maintainers usually reply within 3 days