MCPcopy Create free account
hub / github.com/nodejs/node / assert_implements

Function assert_implements

test/fixtures/wpt/resources/testharness.js:2686–2688  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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 /**

Callers 3

runTestsFunction · 0.50

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected