Skip to content

Commit e850cfc

Browse files
committed
test(grid-validation): use correct spelling
1 parent 9a34df6 commit e850cfc

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ describe('IgxGrid - Validation #grid', () => {
167167
cell = grid.gridAPI.get_cell_by_visible_index(1, 1);
168168
//min length should be 4
169169
GridFunctions.verifyCellValid(cell, false);
170-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
171-
expect(erorrMessage).toEqual(' Entry should be at least 4 character(s) long ');
170+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
171+
expect(errorMessage).toEqual(' Entry should be at least 4 character(s) long ');
172172
});
173173

174174
it('should mark invalid cell with igx-grid__td--invalid class and show the related error cell template when the field contains "."', () => {
@@ -186,8 +186,8 @@ describe('IgxGrid - Validation #grid', () => {
186186
cell = grid.gridAPI.get_cell_by_visible_index(1, 4);
187187
//min length should be 4
188188
GridFunctions.verifyCellValid(cell, false);
189-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
190-
expect(erorrMessage).toEqual(' Entry should be at least 4 character(s) long ');
189+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
190+
expect(errorMessage).toEqual(' Entry should be at least 4 character(s) long ');
191191
});
192192

193193
it('should show the error message on error icon hover and when the invalid cell becomes active.', fakeAsync(() => {
@@ -204,8 +204,8 @@ describe('IgxGrid - Validation #grid', () => {
204204
//min length should be 4
205205
GridFunctions.verifyCellValid(cell, false);
206206
GridSelectionFunctions.verifyCellActive(cell, true);
207-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
208-
expect(erorrMessage).toEqual(' Entry should be at least 4 character(s) long ');
207+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
208+
expect(errorMessage).toEqual(' Entry should be at least 4 character(s) long ');
209209

210210
const overlayService = TestBed.inject(IgxOverlayService);
211211
const info = overlayService.getOverlayById(cell.errorTooltip.first.overlayId);
@@ -390,8 +390,8 @@ describe('IgxGrid - Validation #grid', () => {
390390
cell = grid.gridAPI.get_cell_by_visible_index(1, 1);
391391
//bob cannot be the name
392392
GridFunctions.verifyCellValid(cell, false);
393-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
394-
expect(erorrMessage).toEqual(' This name is forbidden. ');
393+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
394+
expect(errorMessage).toEqual(' This name is forbidden. ');
395395

396396
cell.editMode = true;
397397
cell.update('test');
@@ -425,8 +425,8 @@ describe('IgxGrid - Validation #grid', () => {
425425
fixture.detectChanges();
426426

427427
GridFunctions.verifyCellValid(cell, false);
428-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
429-
expect(erorrMessage).toEqual(' Entry should be at least 4 character(s) long ');
428+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
429+
expect(errorMessage).toEqual(' Entry should be at least 4 character(s) long ');
430430
});
431431

432432
it('should trigger validation on change when using custom editor bound via editValue.', () => {
@@ -444,8 +444,8 @@ describe('IgxGrid - Validation #grid', () => {
444444
fixture.detectChanges();
445445

446446
GridFunctions.verifyCellValid(cell, false);
447-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
448-
expect(erorrMessage).toEqual(' Entry should be at least 4 character(s) long ');
447+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
448+
expect(errorMessage).toEqual(' Entry should be at least 4 character(s) long ');
449449
});
450450

451451
it('should trigger validation on blur when using custom editor bound via editValue.', () => {
@@ -472,8 +472,8 @@ describe('IgxGrid - Validation #grid', () => {
472472
grid.crudService.endEdit(true);
473473
fixture.detectChanges();
474474
GridFunctions.verifyCellValid(cell, false);
475-
const erorrMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
476-
expect(erorrMessage).toEqual(' Entry should be at least 4 character(s) long ');
475+
const errorMessage = cell.errorTooltip.first.elementRef.nativeElement.children[0].textContent;
476+
expect(errorMessage).toEqual(' Entry should be at least 4 character(s) long ');
477477
});
478478
});
479479

0 commit comments

Comments
 (0)