1 require('./aaiSubscriberController');
2 const jestMock = require('jest-mock');
4 describe('TreeCtrl testing', () => {
7 angular.mock.module('app')
10 beforeEach(inject(function (_$controller_) {
12 _$controller_('TreeCtrl', {
17 test('Verify expandAll calls broadcast with expand-all parameter', () => {
19 const broadcast = jestMock.fn();
20 $scope.$broadcast = broadcast;
23 ANGULAR_UI_TREE_EXPANDALL: "angular-ui-tree:expand-all"
29 expect(broadcast).toHaveBeenCalledWith("angular-ui-tree:expand-all");