@@ -78,29 +78,20 @@ test('overrides output properties', async () => {
78
78
expect ( clicked ) . toHaveBeenCalledWith ( 'off' ) ;
79
79
} ) ;
80
80
81
- test ( 'should remove angular attributes' , async ( ) => {
82
- await render ( OnOffDirective , {
83
- template : '<div onOff (clicked)="clicked($event)"></div>' ,
84
- } ) ;
85
-
86
- expect ( document . querySelector ( '[ng-version]' ) ) . toBeNull ( ) ;
87
- expect ( document . querySelector ( '[id]' ) ) . toBeNull ( ) ;
88
- } ) ;
89
-
90
81
describe ( 'removeAngularAttributes' , ( ) => {
91
82
test ( 'should remove angular attributes' , async ( ) => {
92
83
await render ( OnOffDirective , {
93
84
template : '<div onOff (clicked)="clicked($event)"></div>' ,
85
+ removeAngularAttributes : true ,
94
86
} ) ;
95
87
96
88
expect ( document . querySelector ( '[ng-version]' ) ) . toBeNull ( ) ;
97
89
expect ( document . querySelector ( '[id]' ) ) . toBeNull ( ) ;
98
90
} ) ;
99
91
100
- test ( 'can be disabled' , async ( ) => {
92
+ test ( 'is disabled by default ' , async ( ) => {
101
93
await render ( OnOffDirective , {
102
94
template : '<div onOff (clicked)="clicked($event)"></div>' ,
103
- removeAngularAttributes : false ,
104
95
} ) ;
105
96
106
97
expect ( document . querySelector ( '[ng-version]' ) ) . not . toBeNull ( ) ;
0 commit comments