1
0
Fork 0
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:
迷渡 2018-12-25 00:18:01 +08:00 committed by Ryan Dahl
parent c6e2fffc13
commit c002ea10fa
2 changed files with 6 additions and 2 deletions

View file

@ -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) {}

View file

@ -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");