mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
15 lines
288 B
JavaScript
15 lines
288 B
JavaScript
export default {
|
|
serialize(val, config, indentation, depth, refs, printer) {
|
|
return `Pretty foo: ${printer(
|
|
val.foo,
|
|
config,
|
|
indentation,
|
|
depth,
|
|
refs,
|
|
)}`
|
|
},
|
|
test(val) {
|
|
return val && Object.prototype.hasOwnProperty.call(val, 'foo')
|
|
},
|
|
}
|