This commit is contained in:
Konnor Rogers
2024-12-23 16:39:32 -05:00
parent 812badd721
commit 1a8908acf7

View File

@@ -330,17 +330,17 @@ describe('<wa-switch>', () => {
});
// https://github.com/shoelace-style/webawesome-alpha/discussions/124
it("Should properly flag changes to checked and reflect", async () => {
const el = await fixture<WaSwitch>(html`<wa-switch></wa-switch>`)
await el.updateComplete
expect(el.checked).to.equal(false)
it('Should properly flag changes to checked and reflect', async () => {
const el = await fixture<WaSwitch>(html`<wa-switch></wa-switch>`);
await el.updateComplete;
expect(el.checked).to.equal(false);
el.checked = true
el.checked = true;
await el.updateComplete
await el.updateComplete;
expect(el.checked).to.equal(true)
})
expect(el.checked).to.equal(true);
});
});
}
});