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

decentraland / marketplace / 6468133945

10 Oct 2023 10:36AM UTC coverage: 40.778% (+0.7%) from 40.103%
6468133945

Pull #2030

github

juanmahidalgo
test: add Test for SearchBarDropdown
Pull Request #2030: Feat: new search bar component

2260 of 6951 branches covered (0.0%)

Branch coverage included in aggregate %.

215 of 215 new or added lines in 20 files covered. (100.0%)

4280 of 9087 relevant lines covered (47.1%)

18.0 hits per line

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

66.67
/webapp/src/components/AssetTopbar/SearchBarDropdown/SearchBarDropdown.container.tsx
1
import { connect } from 'react-redux'
2
import { isLoadingType } from 'decentraland-dapps/dist/modules/loading/selectors'
3
import { RootState } from '../../../modules/reducer'
4
import {
5
  fetchCreatorsAccountRequest,
6
  FETCH_CREATORS_ACCOUNT_REQUEST
7
} from '../../../modules/account/actions'
8
import { getCreators, getLoading } from '../../../modules/account/selectors'
9
import {
10
  MapDispatch,
11
  MapDispatchProps,
12
  MapStateProps
13
} from './SearchBarDropdown.types'
14
import { SearchBarDropdown } from './SearchBarDropdown'
15

16
const mapState = (state: RootState): MapStateProps => ({
1✔
17
  fetchedCreators: getCreators(state),
18
  isLoadingCreators: isLoadingType(
19
    getLoading(state),
20
    FETCH_CREATORS_ACCOUNT_REQUEST
21
  )
22
})
23

24
const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({
1✔
25
  onFetchCreators: (search: string, searchUUID?: string) =>
26
    dispatch(fetchCreatorsAccountRequest(search, searchUUID))
×
27
})
28

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