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

decentraland / marketplace / 10032821866

22 Jul 2024 12:58AM UTC coverage: 66.714% (+0.1%) from 66.605%
10032821866

push

github

web-flow
feat: show correctly bids on nfts (#2270)

2654 of 5162 branches covered (51.41%)

Branch coverage included in aggregate %.

24 of 33 new or added lines in 8 files covered. (72.73%)

1 existing line in 1 file now uncovered.

7762 of 10451 relevant lines covered (74.27%)

77.9 hits per line

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

70.0
/webapp/src/modules/ui/asset/bid/selectors.ts
1
import { createSelector } from 'reselect'
1✔
2
import { Bid } from '@dcl/schemas'
3
import { BidState } from '../../../bid/reducer'
4
import { getData as getBidData } from '../../../bid/selectors'
1✔
5
import { RootState } from '../../../reducer'
6
import { BidUIState } from './reducer'
7

8
export const getState = (state: RootState) => state.ui.asset.bid
1✔
9

10
export const getSellerBids = createSelector<RootState, BidUIState, BidState['data'], Bid[]>(getState, getBidData, (bid, bidsById) =>
1✔
11
  bid.seller.map(id => bidsById[id])
×
12
)
13

14
export const getBidderBids = createSelector<RootState, BidUIState, BidState['data'], Bid[]>(getState, getBidData, (ui, bidsById) =>
1✔
15
  ui.bidder.map(id => bidsById[id])
×
16
)
17

18
export const getArchivedBidIds = (state: RootState) => getState(state).archived
1✔
19

20
export const getAssetBids = createSelector<RootState, BidUIState, BidState['data'], Bid[]>(getState, getBidData, (bid, bidsById) =>
1✔
NEW
21
  bid.asset.map(id => bidsById[id])
×
22
)
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