-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(form-data): allow passing a form to FormData Signed-off-by: Logan McAnsh <logan@mcan.sh> * chore: update return Signed-off-by: Logan McAnsh <logan@mcan.sh> * test: add test Signed-off-by: Logan McAnsh <logan@mcan.sh> * Create real-news-divide.md * chore: use setAttribute Signed-off-by: Logan McAnsh <logan@mcan.sh> * chore: add jsdom Signed-off-by: Logan McAnsh <logan@mcan.sh> * fix: setup entries before going through form Signed-off-by: Logan McAnsh <logan@mcan.sh> * test: setup jsdom in caller file Signed-off-by: Logan McAnsh <logan@mcan.sh> * chore: left over debug * chore: remove jsdom, pass fake form object Signed-off-by: Logan McAnsh <logan@mcan.sh> * test: update fake form Signed-off-by: Logan McAnsh <logan@mcan.sh> * chore: use isHTMLFormElement function Signed-off-by: Logan McAnsh <logan@mcan.sh> * chore: use real HTMLFormElement in the browser Signed-off-by: Logan McAnsh <logan@mcan.sh> * chore: fix changeset --------- Signed-off-by: Logan McAnsh <logan@mcan.sh> Co-authored-by: Logan McAnsh <logan@mcan.sh>
- Loading branch information
1 parent
3c20536
commit fd274bd
Showing
3 changed files
with
112 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@web-std/form-data": minor | ||
--- | ||
|
||
allow passing a `form` to `FormData`. implementation taken from https://github.com/tchak/remix-router-turbo/blob/main/test/setup-test-env.ts, thank you @tchak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters