Skip to content

fix: make all failing tests pass - #356

Open
stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier1-2176-1790571045
Open

stooit wants to merge 1 commit into
mainfrom
quantcode/e2e-tier1-2176-1790571045

Conversation

@stooit

@stooit stooit commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • TaskManager: implement remove, update (partial, returns false for unknown id), sortBy (returns a new array; priority high→low, createdAt oldest first)
  • string-utils: wordCount splits on /\s+/; implement truncate (word boundary, ellipsis counts toward maxLength)
  • validator: isEmail accepts long TLDs (linear-time regex); isUrl accepts ports (http/https scheme allowlist retained)
  • calculator: divide throws on division by zero
  • date-utils: formatRelative uses Math.round for days

Verification

  • bun test: 60 pass / 0 fail (was 44/16)
  • tsc --noEmit: clean
  • No test files modified, no dependencies added

Assumptions

  • sortBy('status') (untested) uses workflow order pending → in_progress → completed.
  • truncate with maxLength <= 3 hard-cuts without ellipsis.

Implement TaskManager remove/update/sortBy and string truncate; fix
wordCount whitespace handling, email TLD length, URL port rejection,
divide-by-zero, and relative-date day rounding.
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