github
107 of 117 branches covered (91.45%)
Branch coverage included in aggregate %.
363 of 407 relevant lines covered (89.19%)
10.96 hits per line
1 |
class FetchError extends Error { |
|
2 |
constructor (resp, body) { |
|
3 |
super(resp.statusText)
|
2✔ |
4 |
this.name = 'FetchError' |
2✔ |
5 |
this.resp = resp
|
2✔ |
6 |
this.status = resp.status
|
2✔ |
7 |
Object.assign(this, body)
|
2✔ |
8 |
} |
2✔ |
9 |
} |
1✔ |
10 |
|
1✔ |
11 |
export {
|
1✔ |
12 |
FetchError |
1✔ |
13 |
} |
1✔ |