@@ -2861,7 +2861,7 @@ describe('ui-select tests', function() {
28612861 triggerKeydown ( searchInput , Key . Down ) ;
28622862 expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
28632863 triggerKeydown ( searchInput , Key . Up ) ;
2864- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
2864+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
28652865 } ) ;
28662866
28672867 it ( 'should ignored disabled items going down' , function ( ) {
@@ -2882,7 +2882,7 @@ describe('ui-select tests', function() {
28822882 triggerKeydown ( searchInput , Key . Down ) ;
28832883 expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
28842884 triggerKeydown ( searchInput , Key . Up ) ;
2885- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
2885+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
28862886 } ) ;
28872887
28882888 it ( 'should ignore disabled items, going down with remove-selected on false' , function ( ) {
@@ -3231,12 +3231,12 @@ describe('ui-select tests', function() {
32313231 expect ( el . scope ( ) . $select . spinnerClass ) . toBe ( 'randomclass' ) ;
32323232 } ) ;
32333233 } ) ;
3234-
3234+
32353235 describe ( 'With refresh on active' , function ( ) {
32363236 it ( 'should refresh when is activated' , function ( ) {
32373237 scope . fetchFromServer = function ( ) { } ;
32383238 var el = createUiSelect ( { refresh :"fetchFromServer($select.search)" , refreshDelay :0 } ) ;
3239- spyOn ( scope , 'fetchFromServer' ) ;
3239+ spyOn ( scope , 'fetchFromServer' ) ;
32403240 expect ( el . scope ( ) . $select . open ) . toEqual ( false ) ;
32413241 el . scope ( ) . $select . activate ( ) ;
32423242 $timeout . flush ( ) ;
@@ -3248,7 +3248,7 @@ describe('ui-select tests', function() {
32483248 it ( 'should refresh when open is set to true' , function ( ) {
32493249 scope . fetchFromServer = function ( ) { } ;
32503250 var el = createUiSelect ( { refresh :"fetchFromServer($select.search)" , refreshDelay :0 } ) ;
3251- spyOn ( scope , 'fetchFromServer' ) ;
3251+ spyOn ( scope , 'fetchFromServer' ) ;
32523252 expect ( el . scope ( ) . $select . open ) . toEqual ( false ) ;
32533253 openDropdown ( el ) ;
32543254 $timeout . flush ( ) ;
@@ -3286,7 +3286,7 @@ describe('ui-select tests', function() {
32863286 triggerKeydown ( searchInput , Key . Down ) ;
32873287 expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
32883288 triggerKeydown ( searchInput , Key . Up ) ;
3289- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
3289+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
32903290 } ) ;
32913291
32923292 it ( 'should ignored disabled items in the down direction with tagging on' , function ( ) {
0 commit comments