Percentage | Lines | ||
---|---|---|---|
src/index.ts |
|
100 % | 109 |
src/errors.ts |
|
100 % | 32 |
Percentage | Lines | ||
---|---|---|---|
ApplicationError |
|
100 % | 10 |
ServerError |
|
100 % | 4 |
NetworkError |
|
100 % | 4 |
DataError |
|
100 % | 4 |
CRAP Score | Lines | |
---|---|---|
index.ts ➔ extractRateFromResponse | 5 | 7 |
index.ts ➔ fetchExchangeRate | 4 | 12 |
index.ts ➔ getExchangeRate | 3 | 21 |
index.ts ➔ getCachedRate | 3 | 12 |
index.ts ➔ fetchExchangeRateResponse | 2 | 7 |
ApplicationError.captureStackTrace | 2 | 4 |
index.ts ➔ buildRateUrl | 1 | 3 |
index.ts ➔ isCacheValid | 1 | 6 |