(assertFn, shouldBeElement, opt_message)
| 125 | * @throws {Error} when shouldBeElement is not an Element |
| 126 | */ |
| 127 | export function assertElement(assertFn, shouldBeElement, opt_message) { |
| 128 | return assertType_( |
| 129 | assertFn, |
| 130 | shouldBeElement, |
| 131 | isElement(shouldBeElement), |
| 132 | 'Element expected', |
| 133 | opt_message |
| 134 | ); |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Throws an error if the first argument isn't a string. The string can |
nothing calls this directly
no test coverage detected