Skip to content

test: cover INVALID_TASK rejection paths for blank task fields (Issue #118) - #190

Open
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-118-invalid-task-rejection
Open

test: cover INVALID_TASK rejection paths for blank task fields (Issue #118)#190
rafaio1 wants to merge 1 commit into
Lilly-Protocol:mainfrom
rafaio1:bounty/issue-118-invalid-task-rejection

Conversation

@rafaio1

@rafaio1 rafaio1 commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Adds unit tests covering INVALID_TASK rejection paths in TaskRunner.run when required task fields are empty or whitespace-only.

Tests Added

  • ✅ Empty taskId throws INVALID_TASK with correct fieldName
  • ✅ Whitespace-only agentId throws INVALID_TASK
  • ✅ Empty toolName throws INVALID_TASK
  • ✅ Blank input (whitespace/newlines) throws INVALID_TASK

Verification

All 4 tests pass locally via npx vitest run tests/tasks/task-runner.test.ts.

Closes #118

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.

[Bounty: $85] Add tests covering INVALID_TASK rejection paths

1 participant