Skip to content

Releases: MarcL/javascript-testing-beginners-course

Day 6

03 Sep 21:21
Compare
Choose a tag to compare
  • Add test and test:watch commands to package.json`
  • Refactor mocha command line parameters into mocha.opts
  • Add support file to avoid repetition of test setup
  • Add husky for git hooks
  • Run tests on git commit or git push

Day 5

01 Sep 21:54
Compare
Choose a tag to compare

PR #6

  • Install request
  • Testing GitHub API with sinon spies and stubs
  • Stub happy and unhappy responses

Day 4

27 Aug 20:57
Compare
Choose a tag to compare
  • Install sinon
  • Use sinon.useFakeTimers() and clock.tick() to speed up asynchronous timeout
  • Set up some date description tests
  • Use sinon.useFakeTimers() with dates to initialise correctly

Day 3 - Finished

26 Aug 20:38
Compare
Choose a tag to compare

Day 3

  • Add notes
  • Test for callback using done
  • Tests for Promises using done and returning a Promise.

From PR #4

Day 2 - Finished

10 Aug 07:34
Compare
Choose a tag to compare

Day 2

  • Initial installation of mocha and chai
  • Data type tests
  • Equality tests
  • Containment tests
  • Error tests
  • Grouping tests