8000 GitHub - LauraPatterson/greet: Simple greeting unit tests using Jest
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LauraPatterson/greet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Greeting Test

Test Cases

  1. The function returns a simple greeting with the name parameter. e.g. "Hello, Elizabeth"
  2. If the name parameter is null, the function returns "Hello there!"
  3. If the name parameter is ALL CAPS, the function returns "HELLO [NAME]!"
  4. If an array of two names is inputted as the parameter, the function returns "Hello, name[0], name[1]"
  5. If an array of multiple name is inputted as the parameter, the function returns "Hello, name[0], name[1]..., name[n]

About

Simple greeting unit tests using Jest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0