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

decentraland / marketplace / 8253982565

12 Mar 2024 06:27PM UTC coverage: 66.11% (-0.1%) from 66.221%
8253982565

Pull #2183

github

LautaroPetaccio
fix: Test
Pull Request #2183: fix: Linting rules (no-unsafe-declaration-merging, no-redundant-type-constituents, no-unnecessary-type-assertion, ...)

2509 of 4914 branches covered (51.06%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 3 files covered. (100.0%)

12 existing lines in 5 files now uncovered.

7424 of 10111 relevant lines covered (73.42%)

72.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'
28✔
2
import { t } from 'decentraland-dapps/dist/modules/translation/utils'
28✔
3
import { isErrorWithMessage } from '../../lib/error'
28✔
4
import { FETCH_TILES_SUCCESS, FetchTilesSuccessAction } from '../tile/actions'
28✔
5
import {
6
  FETCH_PROXIMITY_REQUEST,
7
  FetchProximityRequestAction,
8
  fetchProximitySuccess,
9
  fetchProximityFailure,
10
  fetchProximityRequest
11
} from './actions'
28✔
12
import { Proximity } from './types'
13

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