• 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

47.06
/webapp/src/modules/proximity/sagas.ts
1
import { takeEvery, call, put } from 'redux-saga/effects'
31✔
2
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
31✔
3
import { isErrorWithMessage } from '../../lib/error'
31✔
4
import { FETCH_TILES_SUCCESS, FetchTilesSuccessAction } from '../tile/actions'
31✔
5
import {
6
  FETCH_PROXIMITY_REQUEST,
7
  FetchProximityRequestAction,
8
  fetchProximitySuccess,
9
  fetchProximityFailure,
10
  fetchProximityRequest
11
} from './actions'
31✔
12
import { Proximity } from './types'
13

14
export function* proximitySaga() {
250✔
15
  yield takeEvery(FETCH_TILES_SUCCESS, handleFetchTilesSuccess)
250✔
16
  yield takeEvery(FETCH_PROXIMITY_REQUEST, handleFetchProximityRequest)
250✔
17
}
18

19
function* handleFetchProximityRequest(_action: FetchProximityRequestAction) {
UNCOV
20
  try {
×
UNCOV
21
    const proximity: Record<string, Proximity> = (yield call(async () => {
×
UNCOV
22
      const resp = await fetch(process.env.VITE_BASE_URL + '/proximity.json')
×
23
      return resp.json()
×
24
    })) as Record<string, Proximity>
25
    yield put(fetchProximitySuccess(proximity))
×
26
  } catch (error) {
UNCOV
27
    yield put(fetchProximityFailure(isErrorWithMessage(error) ? error.message : t('global.unknown_error')))
×
28
  }
29
}
30

31
function* handleFetchTilesSuccess(_action: FetchTilesSuccessAction) {
UNCOV
32
  yield put(fetchProximityRequest())
×
33
}
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