it('should set `$rootScope.isLoading` to true when route contains resolve property', () => {
                const toState = {resolve: 'test'};
                OnRun.runFactory($rootScope, $state, $log, AuthenticationService);

                $rootScope.$broadcast('$stateChangeStart', toState); // the first argument is reserved for the event object (that's why we are not passing event object here)