(expectedFormat: string)
| 186 | * @param {string} expectedFormat the expected format of the resolved sub-schema |
| 187 | */ |
| 188 | export const formatIs = (expectedFormat: string): Tester => |
| 189 | schemaMatches( |
| 190 | (schema) => |
| 191 | !isEmpty(schema) && |
| 192 | schema.format === expectedFormat && |
| 193 | hasType(schema, 'string') |
| 194 | ); |
| 195 | |
| 196 | /** |
| 197 | * Checks whether the given UI schema has the expected type. |
no test coverage detected
searching dependent graphs…