MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / mapValueToProps

Function mapValueToProps

test/specs/lib/factories-test.js:339–339  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

337 const overrideProps = sandbox.spy(() => ({}))
338 const value = 'foo'
339 const mapValueToProps = (val) => ({ 'data-mapped': val })
340
341 shallow(getShorthand({ defaultProps, mapValueToProps, overrideProps, value }))
342 overrideProps.should.have.been.calledWith({ ...defaultProps, ...mapValueToProps(value) })

Callers 3

factories-test.jsFile · 0.85
createShorthandFunction · 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…