-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [#1608] Fixes problem with snapshot not resulting in HTML for fo…
…rm and select elements
- Loading branch information
1 parent
675e306
commit c7d4b56
Showing
5 changed files
with
105 additions
and
1 deletion.
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
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
65 changes: 65 additions & 0 deletions
65
packages/happy-dom/test/nodes/html-form-element/__snapshots__/HTMLFormElement.test.ts.snap
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,65 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`HTMLFormElement > constructor() > Matches snapshot. 1`] = ` | ||
<form> | ||
<input | ||
name="text1" | ||
type="text" | ||
value="value1" | ||
/> | ||
<input | ||
name="text2" | ||
type="hidden" | ||
value="value2" | ||
/> | ||
<input | ||
checked="" | ||
name="checkbox1" | ||
type="checkbox" | ||
value="value1" | ||
/> | ||
<input | ||
name="checkbox2" | ||
type="checkbox" | ||
value="value2" | ||
/> | ||
<input | ||
name="radio1" | ||
type="radio" | ||
value="value1" | ||
/> | ||
<input | ||
checked="" | ||
name="radio1" | ||
type="radio" | ||
value="value2" | ||
/> | ||
<input | ||
name="radio1" | ||
type="radio" | ||
value="value3" | ||
/> | ||
<input | ||
name="button1" | ||
type="submit" | ||
/> | ||
</form> | ||
`; |
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
12 changes: 12 additions & 0 deletions
12
...ges/happy-dom/test/nodes/html-select-element/__snapshots__/HTMLSelectElement.test.ts.snap
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,12 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`HTMLSelectElement > constructor() > Matches snapshot. 1`] = ` | ||
<select> | ||
<option> | ||
Option 1 | ||
</option> | ||
<option> | ||
Option 2 | ||
</option> | ||
</select> | ||
`; |