mirror of
https://github.com/denoland/deno.git
synced 2024-12-31 03:29:10 -05:00
fix FormData.name (#1412)
This commit is contained in:
parent
c6e2fffc13
commit
c002ea10fa
2 changed files with 6 additions and 2 deletions
|
@ -100,8 +100,8 @@ class FormDataBase {
|
|||
}
|
||||
|
||||
// tslint:disable-next-line:variable-name
|
||||
export const FormData = DomIterableMixin<
|
||||
export class FormData extends DomIterableMixin<
|
||||
string,
|
||||
domTypes.FormDataEntryValue,
|
||||
typeof FormDataBase
|
||||
>(FormDataBase, dataSymbol);
|
||||
>(FormDataBase, dataSymbol) {}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
||||
import { test, assert, assertEqual } from "./test_util.ts";
|
||||
|
||||
test(function formDataHasCorrectNameProp() {
|
||||
assertEqual(FormData.name, "FormData");
|
||||
});
|
||||
|
||||
test(function formDataParamsAppendSuccess() {
|
||||
const formData = new FormData();
|
||||
formData.append("a", "true");
|
||||
|
|
Loading…
Reference in a new issue