Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Test Failing 🐛

Open
#32 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fac-14/NDJS-API

All issues in fac-14/NDJS-API

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.