github
1354 of 1531 branches covered (88.44%)
Branch coverage included in aggregate %.
113 of 1543 new or added lines in 23 files covered. (7.32%)
3 existing lines in 3 files now uncovered.5522 of 10725 relevant lines covered (51.49%)
28.35 hits per line
NEW
|
export const blob2base64Async = (blob: Blob) => { |
× |
NEW
|
return new Promise((resolve, reject) => { |
× |
NEW
|
const fr = new FileReader(); |
× |
NEW
|
fr.onload = (e) => { |
× |
NEW
|
resolve(e.target?.result); |
× |
NEW
|
}; |
× |
|
/* c8 ignore next 3 */
|
2✔ |
|
fr.onerror = () => { |
2✔ |
|
reject(new Error('blob2base64Async: can not convert')); |
2✔ |
|
}; |
2✔ |
NEW
|
fr.readAsDataURL(blob); |
× |
NEW
|
}); |
× |
NEW
|
}; |
× |