1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
2020-02-15 17:04:21 -03:30

27 lines
602 B
JavaScript

import assert from 'assert'
import proxyquire from 'proxyquire'
let mapStateToProps
proxyquire('../send-from-row.container.js', {
'react-redux': {
connect: (ms) => {
mapStateToProps = ms
return () => ({})
},
},
'../../send.selectors.js': {
getSendFromObject: (s) => `mockFrom:${s}`,
},
})
describe('send-from-row container', function () {
describe('mapStateToProps()', function () {
it('should map the correct properties to props', function () {
assert.deepEqual(mapStateToProps('mockState'), {
from: 'mockFrom:mockState',
})
})
})
})