Skip to content

fix: resolve failing tests and implement missing utilities - #362

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier1-2222-1790871607
Open

stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier1-2222-1790871607

Conversation

@stooit

@stooit stooit commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • calculator.divide throws on division by zero
  • date-utils.formatRelative rounds days (36h → "2 days ago"), future dates preserved
  • string-utils: wordCount splits on any whitespace; truncate implemented (ellipsis counts toward maxLength, word-boundary cut)
  • validator: isEmail accepts long TLDs (2–63 chars, 254-char cap); isUrl accepts URLs with ports (http/https allowlist kept)
  • TaskManager: implemented remove, update, sortBy (priority/createdAt/status, returns copy)

Result: 60/60 tests pass, tsc --noEmit clean. No test files or dependencies changed.

Assumptions

  • sortBy("status") is untested; ordered pending → in_progress → completed.
  • update() treats undefined fields as "no change" (cannot clear description).
  • isUrl relies on WHATWG URL parsing, so it normalises minor input quirks (e.g. surrounding whitespace).

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