(expected: string)
| 265 | */ |
| 266 | export const scopeEndIs = |
| 267 | (expected: string): Tester => |
| 268 | (uischema: UISchemaElement): boolean => { |
| 269 | if (isEmpty(expected) || !isControl(uischema)) { |
| 270 | return false; |
| 271 | } |
| 272 | const schemaPath = uischema.scope; |
| 273 | |
| 274 | return !isEmpty(schemaPath) && last(schemaPath.split('/')) === expected; |
| 275 | }; |
| 276 | |
| 277 | /** |
| 278 | * A tester that allow composing other testers by && them. |
no test coverage detected
searching dependent graphs…