diff --git a/js/form_data.ts b/js/form_data.ts index 6626435201..6f0cadfef1 100644 --- a/js/form_data.ts +++ b/js/form_data.ts @@ -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) {} diff --git a/js/form_data_test.ts b/js/form_data_test.ts index fef61542e7..f3fbdd8724 100644 --- a/js/form_data_test.ts +++ b/js/form_data_test.ts @@ -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");