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

Function formatDescriptorWithLabel

lib/assert.js:22–27  ·  view source on GitHub ↗
(label, descriptor)

Source from the content-addressed store, hash-verified

20}
21
22function formatDescriptorWithLabel(label, descriptor) {
23 return {
24 label,
25 formatted: concordance().formatDescriptor(descriptor, concordanceOptions),
26 };
27}
28
29function formatWithLabel(label, value) {
30 return formatDescriptorWithLabel(label, concordance().describe(value, concordanceOptions));

Callers 2

formatWithLabelFunction · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected