File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -900,6 +900,11 @@ describe("widget", function(){
900
900
scope . items . push ( 'frodo' ) ;
901
901
scope . $eval ( ) ;
902
902
expect ( element . text ( ) ) . toEqual ( 'misko:first|shyam:middle|doug:middle|frodo:last|' ) ;
903
+
904
+ scope . items . pop ( ) ;
905
+ scope . items . pop ( ) ;
906
+ scope . $eval ( ) ;
907
+ expect ( element . text ( ) ) . toEqual ( 'misko:first|shyam:last|' ) ;
903
908
} ) ;
904
909
905
910
it ( 'should expose iterator position as $position when iterating over objects' , function ( ) {
@@ -908,6 +913,11 @@ describe("widget", function(){
908
913
scope . items = { 'misko' :'m' , 'shyam' :'s' , 'doug' :'d' , 'frodo' :'f' } ;
909
914
scope . $eval ( ) ;
910
915
expect ( element . text ( ) ) . toEqual ( 'misko:m:first|shyam:s:middle|doug:d:middle|frodo:f:last|' ) ;
916
+
917
+ delete scope . items . doug ;
918
+ delete scope . items . frodo ;
919
+ scope . $eval ( ) ;
920
+ expect ( element . text ( ) ) . toEqual ( 'misko:m:first|shyam:s:last|' ) ;
911
921
} ) ;
912
922
} ) ;
913
923
You can’t perform that action at this time.
0 commit comments