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

decentraland / marketplace / 12537635746

29 Dec 2024 06:09PM UTC coverage: 66.129% (-0.1%) from 66.252%
12537635746

Pull #2344

github

LautaroPetaccio
fix: Owner being shown in the item detail page when the item is L1
Pull Request #2344: fix: Multiple off chain issues

2689 of 5279 branches covered (50.94%)

Branch coverage included in aggregate %.

1 of 2 new or added lines in 2 files covered. (50.0%)

12 existing lines in 5 files now uncovered.

7852 of 10661 relevant lines covered (73.65%)

77.28 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'
34✔
2
import {
3
  FetchProximityRequestAction,
4
  FetchProximitySuccessAction,
5
  FetchProximityFailureAction,
6
  FETCH_PROXIMITY_REQUEST,
7
  FETCH_PROXIMITY_SUCCESS,
8
  FETCH_PROXIMITY_FAILURE
9
} from './actions'
34✔
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 = {
34✔
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) {
305✔
27
  switch (action.type) {
2,230!
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,230✔
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