Skip to content

About

JavaScript Testing in Node, the Browser, and CI

Resources

Stars

13 stars

Watchers

3 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Testing in Node, the Browser, and CI

This is a presentation about testing JavaScript in various environments. All tests use mocha as the test runner and chai as the assertion framework.

Start folder:

  1. Node
  2. the Browser
  3. CI (Karma runs in a headless browser from the command-line)

Compare your results to the done folder.

Testing scenarios

  • add.js: a straight return
  • subtract.js: a callback function
  • multiply.js: returns a promise
  • divide.js: can your test spot the error in this class?
  • ajax-lib.js: mock network call

About

JavaScript Testing in Node, the Browser, and CI

Resources

Stars

13 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages