• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / marketplace / 6982743061

24 Nov 2023 03:54PM UTC coverage: 43.329% (+2.5%) from 40.865%
6982743061

Pull #2042

github

juanmahidalgo
test: fix how the lib is mocked
Pull Request #2042: feat: use squid to calculate route between two chains and tokens

2621 of 7292 branches covered (0.0%)

Branch coverage included in aggregate %.

271 of 349 new or added lines in 18 files covered. (77.65%)

1 existing line in 1 file now uncovered.

4621 of 9422 relevant lines covered (49.04%)

24.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/webapp/src/components/AssetPage/SaleActionBox/ItemSaleActions/ItemSaleActions.container.ts
1
import { connect } from 'react-redux'
2
import { openModal } from 'decentraland-dapps/dist/modules/modal/actions'
3
import { RootState } from '../../../../modules/reducer'
4
import { getWallet } from '../../../../modules/wallet/selectors'
5
import { MapStateProps, OwnProps } from './ItemSaleActions.types'
6
import { MapDispatch, MapDispatchProps } from './ItemSaleActions.types'
7
import ItemSaleActions from './ItemSaleActions'
8

9
const mapState = (state: RootState): MapStateProps => {
1✔
10
  const wallet = getWallet(state)
4✔
11

12
  return {
4✔
13
    wallet
14
  }
15
}
16

17
const mapDispatch = (
1✔
18
  dispatch: MapDispatch,
19
  ownProps: OwnProps
20
): MapDispatchProps => ({
2✔
21
  onBuyWithCrypto: () =>
NEW
22
    dispatch(
×
23
      openModal('MintNFTWithCryptoModal', {
24
        asset: ownProps.item
25
      })
26
    )
27
})
28

29
export default connect(mapState, mapDispatch)(ItemSaleActions)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc