• 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

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

14
export function* proximitySaga() {
245✔
15
  yield takeEvery(FETCH_TILES_SUCCESS, handleFetchTilesSuccess)
245✔
16
  yield takeEvery(FETCH_PROXIMITY_REQUEST, handleFetchProximityRequest)
245✔
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