Skip to content

Commit 6c08c8a

Browse files
committed
fix(NcCheckboxRadioSwitch): remove TypeScript cast from JS test file
Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
1 parent c5926a0 commit 6c08c8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/components/NcCheckboxRadioSwitch/checkbox.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('NcCheckboxRadioSwitch', () => {
114114

115115
// Simulate keyboard spacebar: browser toggles input.checked BEFORE firing change
116116
const input = wrapper.find('input')
117-
const inputEl = input.element as HTMLInputElement
117+
const inputEl = input.element
118118
inputEl.checked = true // Browser would do this before firing change
119119
await input.trigger('change')
120120

@@ -138,7 +138,7 @@ describe('NcCheckboxRadioSwitch', () => {
138138

139139
// Simulate keyboard spacebar unchecking: browser sets checked=false before change
140140
const input = wrapper.find('input')
141-
const inputEl = input.element as HTMLInputElement
141+
const inputEl = input.element
142142
inputEl.checked = false
143143
await input.trigger('change')
144144

0 commit comments

Comments
 (0)