Skip to content

Commit aee0e6f

Browse files
committed
test(pdf export): updating test components
1 parent 58b07d9 commit aee0e6f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid-summary.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ describe('IgxGrid - Summaries #grid', () => {
210210
beforeEach(() => {
211211
fixture = TestBed.createComponent(CustomSummariesComponent);
212212
fixture.detectChanges();
213-
grid = fixture.componentInstance.grid1;
213+
grid = fixture.componentInstance.grid;
214214
});
215215

216216
it('should properly render custom summaries', () => {
@@ -2764,7 +2764,7 @@ class AllDataAvgSummary extends IgxSummaryOperand {
27642764

27652765
export class CustomSummariesComponent {
27662766
@ViewChild('grid1', { read: IgxGridComponent, static: true })
2767-
public grid1: IgxGridComponent;
2767+
public grid: IgxGridComponent;
27682768
public data = SampleTestData.foodProductData();
27692769
public dealsSummary = DealsSummary;
27702770
public dealsSummaryMinMax = DealsSummaryMinMax;

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { TestBed, waitForAsync } from '@angular/core/testing';
2-
import { IgxGridComponent } from '../../grids/grid/grid.component';
32
import { ExportUtilities } from '../exporter-common/export-utilities';
43
import { IgxPdfExporterService } from './pdf-exporter';
54
import { IgxPdfExporterOptions } from './pdf-exporter-options';
6-
import { GridIDNameJobTitleComponent, IgxGridFilteringComponent } from '../../test-utils/grid-samples.spec';
5+
import { GridIDNameJobTitleComponent } from '../../test-utils/grid-samples.spec';
76
import { first } from 'rxjs/operators';
87
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
9-
import { OneGroupThreeColsGridComponent, NestedColumnGroupsGridComponent } from '../../test-utils/grid-mch-sample.spec';
8+
import { NestedColumnGroupsGridComponent, ColumnGroupTestComponent } from '../../test-utils/grid-mch-sample.spec';
109
import { IgxHierarchicalGridTestBaseComponent } from '../../test-utils/hierarchical-grid-components.spec';
1110
import { IgxTreeGridSortingComponent, IgxTreeGridPrimaryForeignKeyComponent } from '../../test-utils/tree-grid-components.spec';
11+
import { CustomSummariesComponent } from '../../grids/grid/grid-summary.spec';
1212

1313
describe('PDF Grid Exporter', () => {
1414
let exporter: IgxPdfExporterService;
@@ -236,11 +236,11 @@ describe('PDF Grid Exporter', () => {
236236
TestBed.configureTestingModule({
237237
imports: [
238238
NoopAnimationsModule,
239-
OneGroupThreeColsGridComponent
239+
ColumnGroupTestComponent
240240
]
241241
}).compileComponents();
242242

243-
const fix = TestBed.createComponent(OneGroupThreeColsGridComponent);
243+
const fix = TestBed.createComponent(ColumnGroupTestComponent);
244244
fix.detectChanges();
245245

246246
const grid = fix.componentInstance.grid;
@@ -278,11 +278,11 @@ describe('PDF Grid Exporter', () => {
278278
TestBed.configureTestingModule({
279279
imports: [
280280
NoopAnimationsModule,
281-
IgxGridFilteringComponent
281+
CustomSummariesComponent
282282
]
283283
}).compileComponents();
284284

285-
const fix = TestBed.createComponent(IgxGridFilteringComponent);
285+
const fix = TestBed.createComponent(CustomSummariesComponent);
286286
fix.detectChanges();
287287

288288
const grid = fix.componentInstance.grid;

0 commit comments

Comments
 (0)