[PR #1385] [MERGED] chore: fix null handling in multipartFormRequestOptions test #9910

Closed
opened 2026-02-16 18:14:22 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1385
Author: @yordis
Created: 7/29/2025
Status: Merged
Merged: 7/29/2025
Merged by: @adamdotdevin

Base: devHead: yordis/fix-1


📝 Commits (1)

  • f05e045 chore: fix null handling in multipartFormRequestOptions test

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 packages/sdk/tests/form.test.ts (+1 -1)

📄 Description

Fix a failing test in dev branch

bun test ./packages/sdk/tests/form.test.ts --only
bun test v1.2.19 (aad3abea)

packages/sdk/tests/form.test.ts:
25 |             null: null,
26 |           },
27 |         },
28 |         fetch,
29 |       ),
30 |     ).rejects.toThrow(TypeError);
                   ^
error: 

Expected promise           <----------- THE ISSUE
Received: [Function]

      at <anonymous> (/Users/ubi/Developer/github.com/sst/opencode/packages/sdk/tests/form.test.ts:30:15)
      at <anonymous> (/Users/ubi/Developer/github.com/sst/opencode/packages/sdk/tests/form.test.ts:20:21)
✗ form data validation > null [0.44ms]

 0 pass
 1 fail
 1 expect() calls
Ran 1 test across 1 file. [14.00ms]

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1385 **Author:** [@yordis](https://github.com/yordis) **Created:** 7/29/2025 **Status:** ✅ Merged **Merged:** 7/29/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `yordis/fix-1` --- ### 📝 Commits (1) - [`f05e045`](https://github.com/anomalyco/opencode/commit/f05e045b3fbd975e317a230541b33f3483b5f1bb) chore: fix null handling in multipartFormRequestOptions test ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/sdk/tests/form.test.ts` (+1 -1) </details> ### 📄 Description Fix a failing test in `dev` branch ``` bun test ./packages/sdk/tests/form.test.ts --only bun test v1.2.19 (aad3abea) packages/sdk/tests/form.test.ts: 25 | null: null, 26 | }, 27 | }, 28 | fetch, 29 | ), 30 | ).rejects.toThrow(TypeError); ^ error: Expected promise <----------- THE ISSUE Received: [Function] at <anonymous> (/Users/ubi/Developer/github.com/sst/opencode/packages/sdk/tests/form.test.ts:30:15) at <anonymous> (/Users/ubi/Developer/github.com/sst/opencode/packages/sdk/tests/form.test.ts:20:21) ✗ form data validation > null [0.44ms] 0 pass 1 fail 1 expect() calls Ran 1 test across 1 file. [14.00ms] ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:22 -05:00
yindo closed this issue 2026-02-16 18:14:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9910