(optionName: string, optionValue: any)
| 213 | */ |
| 214 | export const optionIs = |
| 215 | (optionName: string, optionValue: any): Tester => |
| 216 | (uischema: UISchemaElement): boolean => { |
| 217 | if (isEmpty(uischema)) { |
| 218 | return false; |
| 219 | } |
| 220 | |
| 221 | const options = uischema.options; |
| 222 | return !isEmpty(options) && options[optionName] === optionValue; |
| 223 | }; |
| 224 | |
| 225 | /** |
| 226 | * Checks whether the given UI schema has an option with the given |
no outgoing calls
no test coverage detected
searching dependent graphs…