Improve this Doc  View Source

$verifyNoPendingTasks

  1. - service in module ngMock

Overview

Verifies that there are no pending tasks that need to be flushed. It throws an error if there are still pending tasks.

You can check for a specific type of tasks only, by specifying a taskType.

Available task types:

Periodic tasks scheduled via $interval use a different queue and are not taken into account by $verifyNoPendingTasks(). There is currently no way to verify that there are no pending $interval tasks.

Usage

$verifyNoPendingTasks([taskType]);

Arguments

Param Type Details
taskType
(optional)
string

The type of tasks to check for.