Skip to content

fix: resolve failing tests and implement missing functionality - #463

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier1-923-1794413897
Open

stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier1-923-1794413897

Conversation

@stooit

@stooit stooit commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • calculator.divide: throw on division by zero
  • string-utils: implement truncate (word boundary, ... counts toward maxLength); wordCount handles repeated whitespace
  • date-utils.formatRelative: use Math.round for days (fixes off-by-one)
  • validator: isEmail accepts TLDs of 2+ letters; isUrl accepts ports (still http/https only)
  • TaskManager: implement remove, update, sortBy

Verification

bun test: 60 pass / 0 fail (was 44/16). tsc --noEmit clean. Reviewed, including a ReDoS check on the new email regex.

Assumptions

  • sortBy('status') order is pending → in_progress → completed (tests don't cover it)
  • update uses Object.assign; extra runtime keys aren't filtered (type-restricted only)
  • No test files modified, no dependencies added

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.

1 participant