(assertFn, shouldBeString, opt_message)
| 147 | * @throws {Error} when shouldBeString is not an String |
| 148 | */ |
| 149 | export function assertString(assertFn, shouldBeString, opt_message) { |
| 150 | return assertType_( |
| 151 | assertFn, |
| 152 | shouldBeString, |
| 153 | isString(shouldBeString), |
| 154 | 'String expected', |
| 155 | opt_message |
| 156 | ); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Throws an error if the first argument isn't a number. The allowed values |
nothing calls this directly
no test coverage detected