@@ -2861,7 +2861,7 @@ describe('ui-select tests', function() {
2861
2861
triggerKeydown ( searchInput , Key . Down ) ;
2862
2862
expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
2863
2863
triggerKeydown ( searchInput , Key . Up ) ;
2864
- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
2864
+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
2865
2865
} ) ;
2866
2866
2867
2867
it ( 'should ignored disabled items going down' , function ( ) {
@@ -2882,7 +2882,7 @@ describe('ui-select tests', function() {
2882
2882
triggerKeydown ( searchInput , Key . Down ) ;
2883
2883
expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
2884
2884
triggerKeydown ( searchInput , Key . Up ) ;
2885
- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
2885
+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
2886
2886
} ) ;
2887
2887
2888
2888
it ( 'should ignore disabled items, going down with remove-selected on false' , function ( ) {
@@ -3231,12 +3231,12 @@ describe('ui-select tests', function() {
3231
3231
expect ( el . scope ( ) . $select . spinnerClass ) . toBe ( 'randomclass' ) ;
3232
3232
} ) ;
3233
3233
} ) ;
3234
-
3234
+
3235
3235
describe ( 'With refresh on active' , function ( ) {
3236
3236
it ( 'should refresh when is activated' , function ( ) {
3237
3237
scope . fetchFromServer = function ( ) { } ;
3238
3238
var el = createUiSelect ( { refresh :"fetchFromServer($select.search)" , refreshDelay :0 } ) ;
3239
- spyOn ( scope , 'fetchFromServer' ) ;
3239
+ spyOn ( scope , 'fetchFromServer' ) ;
3240
3240
expect ( el . scope ( ) . $select . open ) . toEqual ( false ) ;
3241
3241
el . scope ( ) . $select . activate ( ) ;
3242
3242
$timeout . flush ( ) ;
@@ -3248,7 +3248,7 @@ describe('ui-select tests', function() {
3248
3248
it ( 'should refresh when open is set to true' , function ( ) {
3249
3249
scope . fetchFromServer = function ( ) { } ;
3250
3250
var el = createUiSelect ( { refresh :"fetchFromServer($select.search)" , refreshDelay :0 } ) ;
3251
- spyOn ( scope , 'fetchFromServer' ) ;
3251
+ spyOn ( scope , 'fetchFromServer' ) ;
3252
3252
expect ( el . scope ( ) . $select . open ) . toEqual ( false ) ;
3253
3253
openDropdown ( el ) ;
3254
3254
$timeout . flush ( ) ;
@@ -3286,7 +3286,7 @@ describe('ui-select tests', function() {
3286
3286
triggerKeydown ( searchInput , Key . Down ) ;
3287
3287
expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 2 ) ;
3288
3288
triggerKeydown ( searchInput , Key . Up ) ;
3289
- expect ( el . scope ( ) . $select . activeIndex ) . toBe ( - 1 ) ;
3289
+ expect ( el . scope ( ) . $select . activeIndex ) . toBe ( 0 ) ;
3290
3290
} ) ;
3291
3291
3292
3292
it ( 'should ignored disabled items in the down direction with tagging on' , function ( ) {
0 commit comments