From 37f2955061f460b648a36dca0b03b79d94b12594 Mon Sep 17 00:00:00 2001 From: VDyulgerov Date: Mon, 20 Sep 2021 10:17:56 +0300 Subject: [PATCH] test(grid): Change variable name #8978 --- .../src/lib/data-operations/data-util.spec.ts | 6 +++--- projects/igniteui-angular/src/lib/grids/grid/column.spec.ts | 6 +++--- .../src/lib/test-utils/sample-test-data.spec.ts | 6 +++--- .../src/lib/test-utils/template-strings.spec.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/igniteui-angular/src/lib/data-operations/data-util.spec.ts b/projects/igniteui-angular/src/lib/data-operations/data-util.spec.ts index 82f447d114f..f011f559dc1 100644 --- a/projects/igniteui-angular/src/lib/data-operations/data-util.spec.ts +++ b/projects/igniteui-angular/src/lib/data-operations/data-util.spec.ts @@ -490,9 +490,9 @@ function testMerging() { describe('Test merging', () => { it('Should merge add transactions correctly', () => { const data = SampleTestData.personIDNameData(); - const addRow4 = { ID: 4, IsDev: true, Name: 'Peter' }; - const addRow5 = { ID: 5, IsDev: true, Name: 'Mimi' }; - const addRow6 = { ID: 6, IsDev: false, Name: 'Pedro' }; + const addRow4 = { ID: 4, IsEmployed: true, Name: 'Peter' }; + const addRow5 = { ID: 5, IsEmployed: true, Name: 'Mimi' }; + const addRow6 = { ID: 6, IsEmployed: false, Name: 'Pedro' }; const transactions: Transaction[] = [ { id: addRow4.ID, newValue: addRow4, type: TransactionType.ADD }, { id: addRow5.ID, newValue: addRow5, type: TransactionType.ADD }, diff --git a/projects/igniteui-angular/src/lib/grids/grid/column.spec.ts b/projects/igniteui-angular/src/lib/grids/grid/column.spec.ts index b6c881a6456..ed1c15edad9 100644 --- a/projects/igniteui-angular/src/lib/grids/grid/column.spec.ts +++ b/projects/igniteui-angular/src/lib/grids/grid/column.spec.ts @@ -122,7 +122,7 @@ describe('IgxGrid - Column properties #grid', () => { const cell = grid.getCellByColumn(i, 'ID'); expect(cell.nativeElement.textContent).toMatch(formatter(cell.value)); - const cellBool = grid.gridAPI.get_cell_by_index(i, 'IsDev'); + const cellBool = grid.gridAPI.get_cell_by_index(i, 'IsEmployed'); expect(cellBool.nativeElement.textContent).toMatch(boolFormatter(cellBool.value)); } }); @@ -145,11 +145,11 @@ describe('IgxGrid - Column properties #grid', () => { grid.moveColumn(grid.columnList.first, grid.columnList.last); fix.detectChanges(); - expect(grid.columnList.first.field).toMatch('IsDev'); + expect(grid.columnList.first.field).toMatch('IsEmployed'); expect(grid.columnList.last.field).toMatch('ID'); headers = fix.debugElement.queryAll(By.css(COLUMN_HEADER_CLASS)); - expect(headers[0].nativeElement.textContent).toMatch('IsDev'); + expect(headers[0].nativeElement.textContent).toMatch('IsEmployed'); expect(headers[1].nativeElement.textContent).toMatch('Name'); }); diff --git a/projects/igniteui-angular/src/lib/test-utils/sample-test-data.spec.ts b/projects/igniteui-angular/src/lib/test-utils/sample-test-data.spec.ts index 2d3857aa259..b24e869146f 100644 --- a/projects/igniteui-angular/src/lib/test-utils/sample-test-data.spec.ts +++ b/projects/igniteui-angular/src/lib/test-utils/sample-test-data.spec.ts @@ -141,9 +141,9 @@ export class SampleTestData { /* Data fields: ID: number, Name: string; 3 items. */ public static personIDNameData = () => ([ - { ID: 1, IsDev: true, Name: 'Johny' }, - { ID: 2, IsDev: true, Name: 'Sally' }, - { ID: 3, IsDev: false, Name: 'Tim' }, + { ID: 1, IsEmployed: true, Name: 'Johny' }, + { ID: 2, IsEmployed: true, Name: 'Sally' }, + { ID: 3, IsEmployed: false, Name: 'Tim' }, ]); /* Data fields: FirstName: string, LastName: string, age:number; 3 items. */ diff --git a/projects/igniteui-angular/src/lib/test-utils/template-strings.spec.ts b/projects/igniteui-angular/src/lib/test-utils/template-strings.spec.ts index 558b22ba1a6..8d24c37e0f9 100644 --- a/projects/igniteui-angular/src/lib/test-utils/template-strings.spec.ts +++ b/projects/igniteui-angular/src/lib/test-utils/template-strings.spec.ts @@ -216,7 +216,7 @@ export class ColumnDefinitions { public static idNameFormatter = ` - + `;