EmberJS-Unit Testing Basics



Unit Testing Basics

Unit testing is basically used to test the code and ensure that it is doing what was intended. In unit testing, there are some common cases as shown below −

S.N.Test Cases & Description
1

Testing Computed Properties

A computed property allows declaring functions as properties.

2

Testing Object Methods

It is used to alters some internal state of the object.

3

Testing Observers

The obsever is used to observe the text of the computed property.

Advertisements