(shouldBeElement, opt_message)
| 82 | * @throws {Error} when shouldBeElement is not an Element |
| 83 | */ |
| 84 | export function devAssertElement(shouldBeElement, opt_message) { |
| 85 | if (mode.isMinified()) { |
| 86 | return /** @type {void} */ (shouldBeElement); |
| 87 | } |
| 88 | devAssertDceCheck(); |
| 89 | |
| 90 | return assertions.assertElement( |
| 91 | /** @type {import('./base').AssertionFunctionDef} */ (devAssert), |
| 92 | shouldBeElement, |
| 93 | opt_message |
| 94 | ); |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Throws an error if the first argument isn't a string. The string can |
no test coverage detected