function formatPendingTasksAsString(tasks) {
    var result = [];
    angular.forEach(tasks, function(task) {
      result.push('{id: ' + task.id + ', ' + 'time: ' + task.time + '}');
    });

    return result.join(', ');
  }
@ngdoc method
@name $timeout#verifyNoPendingTasks
@description

Verifies that there are no pending tasks that need to be flushed.