This commit is contained in:
konnorrogers
2023-06-13 15:54:09 -04:00
parent c6cc7b6983
commit 6b9ba9becf

View File

@@ -1,7 +1,6 @@
// eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
import { getFormControls, serialize } from '../../../dist/shoelace.js';
import { expect, fixture, html, oneEvent, waitUntil } from '@open-wc/testing';
// import { getFormControls, serialize } from '../../utilities/form';
import { getFormControls, serialize } from '../../../dist/shoelace.js';
import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests';
import { sendKeys } from '@web/test-runner-commands'; // must come from the same module
import sinon from 'sinon';
@@ -183,7 +182,7 @@ describe('<sl-input>', () => {
it('should serialize its name and value with JSON', async () => {
const form = await fixture<HTMLFormElement>(html` <form><sl-input name="a" value="1"></sl-input></form> `);
const json = serialize(form);
const json = serialize(form) as { a: "1" };
expect(json.a).to.equal('1');
});