File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed
projects/igniteui-angular/src/lib/services/pdf Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,9 @@ describe('PDF Grid Exporter', () => {
196196 exporter . export ( grid , options ) ;
197197 } ) ;
198198
199- it ( 'should emit exportStarted event when exporting grid' , ( done ) => {
199+
200+
201+ it ( 'should handle grid with multiple columns' , ( done ) => {
200202 const fix = TestBed . createComponent ( GridIDNameJobTitleComponent ) ;
201203 fix . detectChanges ( ) ;
202204
@@ -208,20 +210,7 @@ describe('PDF Grid Exporter', () => {
208210 } ) ;
209211
210212 exporter . exportEnded . pipe ( first ( ) ) . subscribe ( ( ) => {
211- expect ( exportStartedFired ) . toBe ( true ) ;
212- done ( ) ;
213- } ) ;
214-
215- exporter . export ( grid , options ) ;
216- } ) ;
217-
218- it ( 'should handle grid with multiple columns' , ( done ) => {
219- const fix = TestBed . createComponent ( GridIDNameJobTitleComponent ) ;
220- fix . detectChanges ( ) ;
221-
222- const grid = fix . componentInstance . grid ;
223-
224- exporter . exportEnded . pipe ( first ( ) ) . subscribe ( ( ) => {
213+ expect ( exportStartedFired ) . toBeTrue ( ) ;
225214 expect ( ExportUtilities . saveBlobToFile ) . toHaveBeenCalledTimes ( 1 ) ;
226215 done ( ) ;
227216 } ) ;
You can’t perform that action at this time.
0 commit comments