mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
28 lines
587 B
JavaScript
28 lines
587 B
JavaScript
import assert from 'assert'
|
|
import proxyquire from 'proxyquire'
|
|
|
|
let mapStateToProps
|
|
|
|
proxyquire('../transaction-activity-log.container.js', {
|
|
'react-redux': {
|
|
connect: ms => {
|
|
mapStateToProps = ms
|
|
return () => ({})
|
|
},
|
|
},
|
|
})
|
|
|
|
describe('TransactionActivityLog container', () => {
|
|
describe('mapStateToProps()', () => {
|
|
it('should return the correct props', () => {
|
|
const mockState = {
|
|
metamask: {
|
|
conversionRate: 280.45,
|
|
},
|
|
}
|
|
|
|
assert.deepEqual(mapStateToProps(mockState), { conversionRate: 280.45 })
|
|
})
|
|
})
|
|
})
|