MCPcopy Create free account
hub / github.com/avajs/ava / formatWithLabel

Function formatWithLabel

lib/assert.js:29–31  ·  view source on GitHub ↗
(label, value)

Source from the content-addressed store, hash-verified

27}
28
29function formatWithLabel(label, value) {
30 return formatDescriptorWithLabel(label, concordance().describe(value, concordanceOptions));
31}
32
33// `RegExp.prototype.test()` advances `lastIndex` for a regex with the `g` or `y` flag, so
34// without this the same value would match once and then fail on the next call.

Callers 5

checkAssertionMessageFunction · 0.85
validateExpectationsFunction · 0.85
assertExpectationsFunction · 0.85
constructorMethod · 0.85
handlePromiseMethod · 0.85

Calls 1

Tested by

no test coverage detected