-
I have Installed Jest - just like Chai or Mocha which you've already seen!
-
I've written the first failing test - we're going to write the code to pass this test!
-
I have exported the randomizer!
-
You will only be working in the index.js file!
-
Run 'npm install' -> This will install all necessary modules
-
Run 'npm test' -> Result should be two failing tests
-
Add results array
-
Run 'npm test' -> Result should be two failing tests
-
Build loop to loop through the students array
-
Pull elements from the array and put two at a time into an object
-
Push that object into the result array
-
Return the result array
-
Run 'npm test' -> Result should be passing test 1
-
Refactor code to handle odd number of people
-
Run 'npm test' -> Result should be two passing tests