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

decentraland / marketplace / 13317909452

13 Feb 2025 10:01PM UTC coverage: 66.073% (-0.1%) from 66.172%
13317909452

Pull #2378

github

web-flow
Merge b3e29c0e4 into cc84fbefc
Pull Request #2378: feat: update decentraland-ui2 v0.11.5

2704 of 5329 branches covered (50.74%)

Branch coverage included in aggregate %.

7900 of 10720 relevant lines covered (73.69%)

77.03 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) {
20
  try {
×
21
    const proximity: Record<string, Proximity> = (yield call(async () => {
×
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) {
27
    yield put(fetchProximityFailure(isErrorWithMessage(error) ? error.message : t('global.unknown_error')))
×
28
  }
29
}
30

31
function* handleFetchTilesSuccess(_action: FetchTilesSuccessAction) {
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