Web Unleashed 2014
Web Dev
  • 2014-09-17 00:00:00 2014-09-18 00:00:00 America/Toronto Web Unleashed 2014 Toronto FITC
  • Toronto

Presentation

SlideShare

Overview

Building complex software application can be made much easier with unit testing – a fact well established in back-end work but often overlooked on the front-end. Yuri Takhteyev will look at some of the tools and techniques for unit testing front end code, focusing on Mocha and Karma. Most of the examples will draw on AngularJS but the main ideas areĀ applicable to other frameworks as well.

Objective

Learn how to write unit tests for front-end code.

Target Audience

Front-end JavaScript developers not currently using unit testing or those experiencing difficulties with unit testing.

Assumed Audience Knowledge

Intermediate front-end JavaScript, no prior experience with front-end unit testing

Five things audience members will learn

  1. How unit testing benefits the developer
  2. How to structure applications to make them testable
  3. How to use Mocha and Karma in unit testing
  4. How to mock dependencies (and why)
  5. How to handle asynchronous code