Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. const test = n => {
  2. if (n === 1) {
  3. console.log(n)
  4. } else if (n === 2) {
  5. console.log(2)
  6. } /* istanbul ignore next */ else if (1 === 2) {
  7. console.log('math is broken')
  8. } else {
  9. console.log('n is some other thing')
  10. }
  11. }
  12.  
  13. test(1)
  14. test(2)
  15. test(3)
  16. // gets 100% coverage, but STILL gets 100% coverage if test(3) removed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement