fix: wrong button type in submit test cases (#2836)
https://github.com/denoland/fresh/pull/2833 breaks some tests where the button must be of type `submit` rather than `button`. This PR fixes this.
This commit is contained in:
@@ -1759,7 +1759,7 @@ Deno.test({
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button
|
||||
type="button"
|
||||
type="submit"
|
||||
class="update"
|
||||
name="submitter"
|
||||
value="sub"
|
||||
@@ -1813,7 +1813,7 @@ Deno.test({
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button
|
||||
type="button"
|
||||
type="submit"
|
||||
class="update"
|
||||
name="submitter"
|
||||
value="sub"
|
||||
@@ -1871,7 +1871,7 @@ Deno.test({
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button
|
||||
type="button"
|
||||
type="submit"
|
||||
class="update"
|
||||
name="submitter"
|
||||
value="sub"
|
||||
@@ -1931,7 +1931,7 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button type="button" class="update">
|
||||
<button type="submit" class="update">
|
||||
update
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user