Skip to content

Commit 5b14cc5

Browse files
committed
chore(checkbox): linting
1 parent e6462e9 commit 5b14cc5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/kit-headless/src/components/checkbox/checkbox.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ test.describe('keyboard behavior', () => {
205205
await expect(getTriCheckbox()).toHaveAttribute('aria-controls');
206206
const magic = await getTriCheckbox().getAttribute('aria-controls');
207207
expect(magic).not.toBe(null);
208-
const idArr = magic!.split(' ');
208+
if (magic === null) {
209+
throw new Error(
210+
'no mixed checkbox found. Was the driver or test template changed?',
211+
);
212+
}
213+
const idArr = magic.split(' ');
209214
expect(isUniqArr(idArr)).toBe(true);
210215
for (let index = 0; index < idArr.length; index++) {
211216
const elementId = idArr[index];

packages/kit-headless/src/components/checkbox/checkbox.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ export const MixedStateCheckbox = component$<MixedStateCheckboxProps>((props) =>
150150
? ''
151151
: checklistContext.idArr.reduce((p, c) => p + ' ' + c);
152152
useContextProvider(CheckboxContext, appliedSig);
153-
useTask$(() => {});
154153

155154
// im not enterily sure why, but the if statement only runs once
156155
if (props.checkBoxSig !== undefined) {

0 commit comments

Comments
 (0)