MCPcopy Index your code
hub / github.com/nodejs/node / assert

Function assert

test/fixtures/wpt/resources/testharness.js:4774–4781  ·  view source on GitHub ↗
(expected_true, function_name, description, error, substitutions)

Source from the content-addressed store, hash-verified

4772 * Utility functions
4773 */
4774 function assert(expected_true, function_name, description, error, substitutions)
4775 {
4776 if (expected_true !== true) {
4777 var msg = make_message(function_name, description,
4778 error, substitutions);
4779 throw new AssertionError(msg);
4780 }
4781 }
4782
4783 /**
4784 * @class

Callers 15

promise_testFunction · 0.70
promise_rejects_domFunction · 0.70
assert_trueFunction · 0.70
assert_falseFunction · 0.70
assert_equalsFunction · 0.70
assert_not_equalsFunction · 0.70
assert_in_arrayFunction · 0.70
assert_object_equalsFunction · 0.70
check_equalFunction · 0.70
assert_array_equalsFunction · 0.70

Calls 1

make_messageFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…