Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const test = n => {
- if (n === 1) {
- console.log(n)
- } else if (n === 2) {
- console.log(2)
- } /* istanbul ignore next */ else if (1 === 2) {
- console.log('math is broken')
- } else {
- console.log('n is some other thing')
- }
- }
- test(1)
- test(2)
- test(3)
- // gets 100% coverage, but STILL gets 100% coverage if test(3) removed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement