Skip to content

Commit d618abc

Browse files
committed
Merge branch 'copilot/add-pdf-export-feature' of https://github.com/IgniteUI/igniteui-angular into copilot/add-pdf-export-feature
2 parents 4df17c0 + b9c99f2 commit d618abc

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

projects/igniteui-angular/src/lib/services/pdf/pdf-exporter-grid.spec.ts

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)