138 of 177 branches covered (77.97%)
Branch coverage included in aggregate %.
96 of 244 new or added lines in 6 files covered. (39.34%)
70 existing lines in 5 files now uncovered.2460 of 2828 relevant lines covered (86.99%)
5.92 hits per line
|
import API from '../utils/api'; |
1✔ |
|
|
1✔ |
3 |
const Product = () => {
|
1✔ |
NEW
|
const addtoWishList = async () => {
|
× |
NEW
|
await API.post('/wishes', { |
× |
NEW
|
productId: '0ff821ca-e94c-4859-8da6-9e7f1ec04456', |
× |
NEW
|
}); |
× |
NEW
|
}; |
× |
NEW
|
return (
|
× |
NEW
|
<div className="min-h-screen flex-center">
|
× |
NEW
|
Product <br />{' '}
|
× |
NEW
|
<button className="ml-5 p-3 border" onClick={addtoWishList}>
|
× |
NEW
|
add to wishlist |
× |
NEW
|
</button> |
× |
NEW
|
</div> |
× |
NEW
|
); |
× |
UNCOV
17
|
}; |
× |
18 |
|
1✔ |
19 |
export default Product; |
1✔ |