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

Function testAssertionMessage

test/parallel/test-assert.js:343–351  ·  view source on GitHub ↗
(actual, expected, msg)

Source from the content-addressed store, hash-verified

341 circular.x = circular;
342
343 function testAssertionMessage(actual, expected, msg) {
344 assert.throws(
345 () => assert.strictEqual(actual, ''),
346 {
347 generatedMessage: true,
348 message: msg || `Expected values to be strictly equal:\n\n${expected} !== ''\n`
349 }
350 );
351 }
352
353 function testLongAssertionMessage(actual, expected) {
354 testAssertionMessage(actual, expected, 'Expected values to be strictly equal:\n' +

Callers 3

testLongAssertionMessageFunction · 0.85
test-assert.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…