File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1820EN_10_Code/02_if_directive Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ describe('if directive', function () {
88 } ) ) ;
99
1010 it ( 'does not add element to the DOM if condition is initially false' , function ( ) {
11- element = $compile ( '<div><div if="false"></div>' ) ( scope ) ;
11+ element = $compile ( '<div><div if="false"></div></div> ' ) ( scope ) ;
1212 scope . $apply ( ) ;
1313 expect ( element . children ( 'div' ) . length ) . toBe ( 0 ) ;
1414 } ) ;
1515
1616 it ( 'adds the element to the DOM on the first digest if condition is initially true' , function ( ) {
17- element = $compile ( '<div><div if="true"></div>' ) ( scope ) ;
17+ element = $compile ( '<div><div if="true"></div></div> ' ) ( scope ) ;
1818 expect ( element . children ( ) . length ) . toBe ( 0 ) ;
1919 scope . $apply ( ) ;
2020 expect ( element . children ( ) . length ) . toBe ( 1 ) ;
You can’t perform that action at this time.
0 commit comments