Skip to content
/ jest Public

Nashville Software School Cohort 11 - testing code with the Jest Library

Notifications You must be signed in to change notification settings

vazquecm/jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#NASHILLE SOFTWARE SCHOOL - Cohort 11 front end curriculum

##Unit testing code with the Jest library

###Assignment:

  1. You are going to use these concepts to build a JavaScript application that fulfills the following requirements. Check out all of the possible uses of the expect function to meet the requirements.

  2. You are going to work on a simple test scenario.

  3. Write a test suite to validate your JavaScript functions.

  4. There should be a function defined with the name checkWordCount.

  5. That function should return false if a string sent to it has more than 100 words in it.

  6. There should be a function defined with the name duplicateCheck.

  7. That function should return false if a string has duplicate words in it.

  8. There should be a function defined with the name verifyAlphaNumeric.

  9. That function should return false if there are any non-alphanumeric characters in a string.

  10. Now that the test suite exists, write a simple application to implement the functionality.

  11. In an HTML file, have two elements: a textarea and a button.

  12. When the button is clicked, extract the contents of the textarea and validate it against the following rules.

  13. There should only be alphanumeric characters in the text. No special characters like $%^&*.

  14. No duplicate words allowed.

  15. Word count should be less than 100.

About

Nashville Software School Cohort 11 - testing code with the Jest Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published