chore: simplify toBeChecked for language ports
This commit is contained in:
parent
833c729eb0
commit
c3b35973db
|
|
@ -1291,7 +1291,7 @@ export class InjectedScript {
|
|||
} else if (expression === 'to.be.checked') {
|
||||
const { checked, indeterminate } = options.expectedValue;
|
||||
if (indeterminate) {
|
||||
if (checked !== undefined)
|
||||
if (typeof checked === 'boolean')
|
||||
throw this.createStacklessError('Can\'t assert indeterminate and checked at the same time');
|
||||
result = this.elementState(element, 'indeterminate');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue