#Examples
The following examples are provided to help get started writing tests for your App SDK 2 based apps.
- Getting Started - Demonstrates the basics of writing jasmine unit tests for a simple app and one sub component. Includes exception handling, creating reusable helper functions, app rendering and handling mock button clicks.
- Defect CRUD - Demonstrates writing tests for an app which performs a full Create/Read/Update/Delete lifecycle of a defect.
Includes mocking WSAPI ajax calls (both success and error conditions), the helper functions
pit
andonceCalled
, and writing jasmine expectations. - Blocked Defects By Iteration Grid - Demonstrates writing tests for an app which renders a grid of blocked defects. Includes mocking WSAPI ajax calls,
working with custom context and timebox scope, the helper functions
pit
andonceFired
, and writing jasmine expectations