mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
eslint
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user