O'Reilly logo

Jasmine Cookbook by Munish Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing Jasmine tests for AngularJS

AngularJS is a JavaScript framework. It extends HTML attributes with directives and binds data to HTML with expressions. The scope of this recipe is to create Jasmine tests for AngularJS code. To know more about AngularJS, you can visit the following website:

https://docs.angularjs.org/guide/introduction

In this recipe, you will learn how to create Jasmine tests for AngularJS.

To understand this recipe, let's assume that you are developing an application for a bank with AngularJS framework and you have to develop test code to implement business logic for opening a new bank account.

"As an AngularJS developer, I want to implement business logic to validate a person's age so that I can implement a test condition ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required