github
1353 of 1530 branches covered (88.43%)
Branch coverage included in aggregate %.
69 of 1501 new or added lines in 20 files covered. (4.6%)
2 existing lines in 1 file now uncovered.5530 of 10779 relevant lines covered (51.3%)
28.21 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
|
}; |
× |