@@ -1488,7 +1488,7 @@ describe('select', function() {
1488
1488
optionElements = element . find ( 'option' ) ;
1489
1489
expect ( optionElements . length ) . toEqual ( 3 ) ;
1490
1490
expect ( scope . obj . value ) . toBe ( null ) ;
1491
- expect ( element . val ( ) ) . toBe ( prop === 'ngValue' ? '? object:4 ?' : '? string:A ?' )
1491
+ expect ( element . val ( ) ) . toBe ( prop === 'ngValue' ? '? object:4 ?' : '? string:A ?' ) ;
1492
1492
} ) ;
1493
1493
1494
1494
@@ -1538,7 +1538,7 @@ describe('select', function() {
1538
1538
optionElements = element . find ( 'option' ) ;
1539
1539
expect ( optionElements . length ) . toEqual ( 4 ) ;
1540
1540
expect ( scope . obj . value ) . toBe ( null ) ;
1541
- expect ( element . val ( ) ) . toBe ( '? string:A ?' )
1541
+ expect ( element . val ( ) ) . toBe ( '? string:A ?' ) ;
1542
1542
} ) ;
1543
1543
1544
1544
@@ -1631,7 +1631,7 @@ describe('select', function() {
1631
1631
B . disabled = true ;
1632
1632
scope . $digest ( ) ;
1633
1633
1634
- var optionElements = element . find ( 'option' ) ;
1634
+ optionElements = element . find ( 'option' ) ;
1635
1635
expect ( optionElements . length ) . toEqual ( 4 ) ;
1636
1636
expect ( optionElements [ 0 ] . value ) . toEqual ( unknownValue ( undefined ) ) ;
1637
1637
@@ -1717,7 +1717,7 @@ describe('select', function() {
1717
1717
1718
1718
scope . options = [ A , B ] ;
1719
1719
scope . obj = {
1720
- value : prop === 'ngValue' ? C : 'C'
1720
+ value : prop === 'ngValue' ? C : 'C'
1721
1721
} ;
1722
1722
1723
1723
var optionString = '' ;
@@ -1765,7 +1765,7 @@ describe('select', function() {
1765
1765
1766
1766
scope . options = [ A , B , C ] ;
1767
1767
scope . obj = {
1768
- value : 'C'
1768
+ value : 'C'
1769
1769
} ;
1770
1770
1771
1771
var optionString = '' ;
@@ -2034,7 +2034,7 @@ describe('select', function() {
2034
2034
D . disabled = true ;
2035
2035
scope . $digest ( ) ;
2036
2036
2037
- var optionElements = element . find ( 'option' ) ;
2037
+ optionElements = element . find ( 'option' ) ;
2038
2038
expect ( optionElements . length ) . toEqual ( 4 ) ;
2039
2039
expect ( element [ 0 ] . value ) . toBe ( '' ) ;
2040
2040
@@ -2068,7 +2068,7 @@ describe('select', function() {
2068
2068
2069
2069
scope . options = [ A , B ] ;
2070
2070
scope . obj = {
2071
- value : prop === 'ngValue' ? [ B , C ] : [ 'B' , 'C' ]
2071
+ value : prop === 'ngValue' ? [ B , C ] : [ 'B' , 'C' ]
2072
2072
} ;
2073
2073
2074
2074
var optionString = '' ;
@@ -2099,11 +2099,14 @@ describe('select', function() {
2099
2099
scope . $digest ( ) ;
2100
2100
2101
2101
optionElements = element . find ( 'option' ) ;
2102
- expect ( element . val ( ) ) . toEqual ( prop === 'ngValue' ? [ 'object:4' , 'object:5' ] : [ 'B' , 'C' ] ) ;
2102
+ expect ( element . val ( ) ) . toEqual ( prop === 'ngValue' ? [ 'object:4' , 'object:5' ] : [ 'B' , 'C' ] ) ;
2103
2103
expect ( optionElements . length ) . toEqual ( 3 ) ;
2104
2104
expect ( optionElements [ 1 ] . selected ) . toBe ( true ) ;
2105
2105
expect ( optionElements [ 2 ] . selected ) . toBe ( true ) ;
2106
- expect ( scope . obj . value ) . toEqual ( prop === 'ngValue' ? [ { name : 'B' , $$hashKey : 'object:4' } , { name : 'C' , $$hashKey : 'object:5' } ] : [ 'B' , 'C' ] ) ;
2106
+ expect ( scope . obj . value ) . toEqual ( prop === 'ngValue' ?
2107
+ [ { name : 'B' , $$hashKey : 'object:4' } ,
2108
+ { name : 'C' , $$hashKey : 'object:5' } ] :
2109
+ [ 'B' , 'C' ] ) ;
2107
2110
} ) ;
2108
2111
2109
2112
they ( 'should keep selection and model when a repeated options with track by are replaced with equal options' ,
@@ -2117,7 +2120,7 @@ describe('select', function() {
2117
2120
2118
2121
scope . options = [ A , B , C ] ;
2119
2122
scope . obj = {
2120
- value : 'C'
2123
+ value : 'C'
2121
2124
} ;
2122
2125
2123
2126
var optionString = '' ;
0 commit comments