• 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

40.0
/webapp/src/components/AssetPage/SaleActionBox/BuyNFTButtons/BuyNFTButtons.container.tsx
1
import { connect } from 'react-redux'
2
import { Order } from '@dcl/schemas'
3
import { openModal } from 'decentraland-dapps/dist/modules/modal/actions'
4
import {
5
  MapDispatchProps,
6
  MapDispatch,
7
  MapStateProps
8
} from './BuyNFTButtons.types'
9
import { executeOrderWithCardRequest } from '../../../../modules/order/actions'
10
import { buyItemWithCardRequest } from '../../../../modules/item/actions'
11
import { Asset } from '../../../../modules/asset/types'
12
import { RootState } from '../../../../modules/reducer'
13
import { getIsBuyCrossChainEnabled } from '../../../../modules/features/selectors'
14
import BuyNFTButtons from './BuyNFTButtons'
15

16
const mapState = (state: RootState): MapStateProps => ({
8✔
17
  isBuyCrossChainEnabled: getIsBuyCrossChainEnabled(state)
18
})
19

20
const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({
4✔
NEW
21
  onExecuteOrderWithCard: nft => dispatch(executeOrderWithCardRequest(nft)),
×
22
  onBuyWithCrypto: (asset: Asset, order?: Order | null) =>
NEW
23
    dispatch(
×
24
      openModal('BuyNFTWithCryptoModal', {
25
        asset,
26
        order
27
      })
28
    ),
NEW
29
  onBuyItemWithCard: item => dispatch(buyItemWithCardRequest(item))
×
30
})
31

32
export default connect(mapState, mapDispatch)(BuyNFTButtons)
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