* Assert that a feature is implemented, based on a 'truthy' condition. * * This function should be used to early-exit from tests in which there is * no point continuing without support for a non-optional spec or spec * feature. For example: * * assert_implements(win
(condition, description)
| 2684 | * @param {string} [description] Error description for the case that the condition is not truthy. |
| 2685 | */ |
| 2686 | function assert_implements(condition, description) { |
| 2687 | assert(!!condition, "assert_implements", description); |
| 2688 | } |
| 2689 | expose_assert(assert_implements, "assert_implements"); |
| 2690 | |
| 2691 | /** |
no test coverage detected