File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 25
25
" src/styles.css"
26
26
],
27
27
"scripts" : [
28
- " node_modules/plotly.js/dist/plotly.min.js"
28
+ " node_modules/plotly.js/dist/plotly.min.js"
29
29
]
30
30
},
31
31
"configurations" : {
137
137
"@schematics/angular:directive" : {
138
138
"prefix" : " plotly"
139
139
}
140
+ },
141
+ "cli" : {
142
+ "analytics" : " 54eda63f-d875-4cef-9211-d2e2dd14ac9f"
140
143
}
141
- }
144
+ }
Original file line number Diff line number Diff line change @@ -172,9 +172,6 @@ describe('PlotComponent', () => {
172
172
} ) ;
173
173
174
174
it ( 'should clear all added window events on destroy' , async ( done ) => {
175
-
176
- spyOn ( component , 'ngOnDestroy' ) . and . callThrough ( ) ;
177
-
178
175
const windowListenerCount = ( < any > window ) . eventListeners ( ) . length ;
179
176
180
177
// make component responsive via both the lib and the component (at least 2 window events are added)
@@ -185,13 +182,9 @@ describe('PlotComponent', () => {
185
182
await component . createPlot ( ) ;
186
183
await fixture . whenStable ( ) ;
187
184
188
- expect ( component . ngOnDestroy ) . not . toHaveBeenCalled ( ) ;
189
-
190
185
fixture . destroy ( ) ;
191
186
await fixture . whenStable ( ) ;
192
187
193
- expect ( component . ngOnDestroy ) . toHaveBeenCalled ( ) ;
194
-
195
188
// amount of listeners should be the same as before initializing the component
196
189
expect ( ( < any > window ) . eventListeners ( ) . length ) . toEqual ( windowListenerCount ) ;
197
190
You can’t perform that action at this time.
0 commit comments