Created
June 2, 2017 23:55
-
-
Save isaacs/0d013bb96063f379242fba37f45ece63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const test = foo => { | |
switch (foo) { | |
case 'ok': | |
return console.log('this is fine') | |
/* istanbul ignore next */ | |
default: | |
throw new Error('nope') | |
} | |
} | |
test('ok') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment