Unit Tests

assertivedocs.js:undefined

Test Arguments Expected Results
Test1 console.log, ["hello"] undefined true

index.js:greet

Test Arguments Expected Results
Test1 John Hello, John! true
Test2 Ben Hello, John! false
Test3 John, Ben Hello, John and Ben! false
Test4 true Hello, true! true
John Hello, John! true

index.js:add

Test Arguments Expected Results
1, 2 3 true
1, 2 5 false

index.js:objectTest

Test Arguments Expected Results
ObjectTestJohn {"name":"John"} John true
ObjectTestBlank {} John false
ClassTestJohn {"name":"John"} John true