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 () {
8
8
} ) ) ;
9
9
10
10
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 ) ;
12
12
scope . $apply ( ) ;
13
13
expect ( element . children ( 'div' ) . length ) . toBe ( 0 ) ;
14
14
} ) ;
15
15
16
16
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 ) ;
18
18
expect ( element . children ( ) . length ) . toBe ( 0 ) ;
19
19
scope . $apply ( ) ;
20
20
expect ( element . children ( ) . length ) . toBe ( 1 ) ;
You can’t perform that action at this time.
0 commit comments