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

decentraland / marketplace / 8707642164

16 Apr 2024 02:41PM UTC coverage: 66.42% (-0.09%) from 66.509%
8707642164

Pull #2218

github

meelrossi
fix wording
Pull Request #2218: feat: add vrm block badge

2601 of 5054 branches covered (51.46%)

Branch coverage included in aggregate %.

16 of 18 new or added lines in 4 files covered. (88.89%)

12 existing lines in 5 files now uncovered.

7554 of 10235 relevant lines covered (73.81%)

78.06 hits per line

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

57.14
/webapp/src/modules/proximity/reducer.ts
1
import { LoadingState, loadingReducer } from 'decentraland-dapps/dist/modules/loading/reducer'
32✔
2
import {
3
  FetchProximityRequestAction,
4
  FetchProximitySuccessAction,
5
  FetchProximityFailureAction,
6
  FETCH_PROXIMITY_REQUEST,
7
  FETCH_PROXIMITY_SUCCESS,
8
  FETCH_PROXIMITY_FAILURE
9
} from './actions'
32✔
10
import { Proximity } from './types'
11

12
type ProximityState = {
13
  data: Record<string, Proximity>
14
  loading: LoadingState
15
  error: string | null
16
}
17

18
const INITIAL_STATE: ProximityState = {
32✔
19
  data: {},
20
  loading: [],
21
  error: null
22
}
23

24
type ProximityReducerAction = FetchProximityRequestAction | FetchProximitySuccessAction | FetchProximityFailureAction
25

26
export function proximityReducer(state = INITIAL_STATE, action: ProximityReducerAction) {
300✔
27
  switch (action.type) {
2,189!
28
    case FETCH_PROXIMITY_REQUEST: {
UNCOV
29
      return {
×
30
        ...state,
31
        loading: loadingReducer(state.loading, action)
32
      }
33
    }
34
    case FETCH_PROXIMITY_SUCCESS: {
35
      return {
×
36
        ...state,
37
        loading: loadingReducer(state.loading, action),
38
        error: null,
39
        data: action.payload.proximity
40
      }
41
    }
42
    case FETCH_PROXIMITY_FAILURE: {
UNCOV
43
      return {
×
44
        ...state,
45
        loading: loadingReducer(state.loading, action),
46
        error: action.payload.error
47
      }
48
    }
49
    default:
50
      return state
2,189✔
51
  }
52
}
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