MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / formatValue

Function formatValue

test/conductor/diff-utils.ts:56–58  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

54 }
55
56 const formatValue = (value: any) => {
57 return (value && typeof value === 'object') ? JSON.stringify(value, null, 2) : String(value);
58 };
59
60 const expected = formatValue(firstError.expected);
61 const actual = formatValue(firstError.actual);

Callers 1

resultAssertionsDiffFunction · 0.70

Calls 2

StringInterface · 0.85
stringifyMethod · 0.65

Tested by

no test coverage detected