Skip to main content

JavaScript Unit Testing

  • Chapter
  • First Online:
Pro Single Page Application Development

Abstract

Unit testing is an important and crucial part of the development process. A unit test is a way to evaluate a unit, which is a small piece of code, and determine if it satisfies the relevant requirements. Unit tests help to create robust code that isn’t malfunctioning during runtime. They act as a safety net when developers continue to develop a feature and might make changes to existing features. Without unit tests, application developers can’t be sure that their changes haven’t broken the application logic and requirements.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Gil Fink

About this chapter

Cite this chapter

Fink, G., Flatow, I. (2014). JavaScript Unit Testing. In: Pro Single Page Application Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6674-7_10

Download citation

Publish with us

Policies and ethics