Skip to content

Commit b807529

Browse files
committed
test(grid): Change variable name #8978
1 parent 4394922 commit b807529

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

projects/igniteui-angular/src/lib/data-operations/data-util.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,9 @@ const testMerging = () => {
487487
describe('Test merging', () => {
488488
it('Should merge add transactions correctly', () => {
489489
const data = SampleTestData.personIDNameData();
490-
const addRow4 = { ID: 4, IsDev: true, Name: 'Peter' };
491-
const addRow5 = { ID: 5, IsDev: true, Name: 'Mimi' };
492-
const addRow6 = { ID: 6, IsDev: false, Name: 'Pedro' };
490+
const addRow4 = { ID: 4, IsEmployed: true, Name: 'Peter' };
491+
const addRow5 = { ID: 5, IsEmployed: true, Name: 'Mimi' };
492+
const addRow6 = { ID: 6, IsEmployed: false, Name: 'Pedro' };
493493
const transactions: Transaction[] = [
494494
{ id: addRow4.ID, newValue: addRow4, type: TransactionType.ADD },
495495
{ id: addRow5.ID, newValue: addRow5, type: TransactionType.ADD },

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('IgxGrid - Column properties #grid', () => {
134134
const cell = grid.gridAPI.get_cell_by_index(i, 'ID');
135135
expect(cell.nativeElement.textContent).toMatch(formatter(cell.value));
136136

137-
const cellBool = grid.gridAPI.get_cell_by_index(i, 'IsDev');
137+
const cellBool = grid.gridAPI.get_cell_by_index(i, 'IsEmployed');
138138
expect(cellBool.nativeElement.textContent).toMatch(boolFormatter(cellBool.value));
139139
}
140140
});
@@ -172,11 +172,11 @@ describe('IgxGrid - Column properties #grid', () => {
172172
grid.moveColumn(grid.columnList.first, grid.columnList.last);
173173
fix.detectChanges();
174174

175-
expect(grid.columnList.first.field).toMatch('IsDev');
175+
expect(grid.columnList.first.field).toMatch('IsEmployed');
176176
expect(grid.columnList.last.field).toMatch('ID');
177177

178178
headers = fix.debugElement.queryAll(By.css(COLUMN_HEADER_CLASS));
179-
expect(headers[0].nativeElement.textContent).toMatch('IsDev');
179+
expect(headers[0].nativeElement.textContent).toMatch('IsEmployed');
180180
expect(headers[1].nativeElement.textContent).toMatch('Name');
181181
});
182182

projects/igniteui-angular/src/lib/test-utils/sample-test-data.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ export class SampleTestData {
141141

142142
/* Data fields: ID: number, Name: string; 3 items. */
143143
public static personIDNameData = () => ([
144-
{ ID: 1, IsDev: true, Name: 'Johny' },
145-
{ ID: 2, IsDev: true, Name: 'Sally' },
146-
{ ID: 3, IsDev: false, Name: 'Tim' },
144+
{ ID: 1, IsEmployed: true, Name: 'Johny' },
145+
{ ID: 2, IsEmployed: true, Name: 'Sally' },
146+
{ ID: 3, IsEmployed: false, Name: 'Tim' },
147147
]);
148148

149149
/* Data fields: FirstName: string, LastName: string, age:number; 3 items. */

projects/igniteui-angular/src/lib/test-utils/template-strings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class ColumnDefinitions {
217217

218218
public static idNameFormatter = `
219219
<igx-column field="ID" [formatter]="multiplier"></igx-column>
220-
<igx-column field="IsDev" [dataType]="'boolean'"></igx-column>
220+
<igx-column field="IsEmployed" [dataType]="'boolean'"></igx-column>
221221
<igx-column field="Name"></igx-column>
222222
`;
223223

0 commit comments

Comments
 (0)