Last active
May 6, 2017 06:26
-
-
Save yashikagarg13/f17b60f808058aa5d292f5582f33b5e0 to your computer and use it in GitHub Desktop.
Jest Blog
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
// Person class | |
class Person { | |
sayHello (name) { | |
console.log("Hello" + name + "!"); | |
} | |
} | |
// Person class test cases | |
// - it should print "Hello JS!” if sayHello is called with “JS” ================> PASSED | |
// - it should print “Hello World!” if sayHello is called with no parameters.====> FAILED |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment