Skip to content

Commit 27df27d

Browse files
committed
chore(*): update chips tests names
1 parent d69dd51 commit 27df27d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/igniteui-angular/src/lib/chips/chip.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ describe('IgxChip', () => {
219219
fix.detectChanges();
220220
});
221221

222-
it('should not trigger onRemove event when a chip is focused and delete button is pressed when not removable', () => {
222+
it('should not trigger onRemove event when delete button is pressed when not removable', () => {
223223
const firstChipComp = fix.componentInstance.chips.toArray()[0];
224224

225225
spyOn(firstChipComp.onRemove, 'emit');
@@ -229,7 +229,7 @@ describe('IgxChip', () => {
229229
expect(firstChipComp.onRemove.emit).not.toHaveBeenCalled();
230230
});
231231

232-
it('should trigger onRemove event when a chip is focused and delete button is pressed when removable', () => {
232+
it('should trigger onRemove event when delete button is pressed when removable', () => {
233233
const secondChipComp = fix.componentInstance.chips.toArray()[1];
234234

235235
spyOn(secondChipComp.onRemove, 'emit');
@@ -239,7 +239,7 @@ describe('IgxChip', () => {
239239
expect(secondChipComp.onRemove.emit).toHaveBeenCalled();
240240
});
241241

242-
it('should delete chip when space button is pressed after chip delete button is focused', () => {
242+
it('should delete chip when space button is pressed on delete button', () => {
243243
HelperTestFunctions.verifyChipsCount(fix, 4);
244244

245245
const deleteButtonElement = HelperTestFunctions.getDeleteButton(fix);
@@ -254,7 +254,7 @@ describe('IgxChip', () => {
254254
expect(chipComponentsIds).not.toContain('City');
255255
});
256256

257-
it('should delete chip when enter button is pressed after chip delete button is focused', () => {
257+
it('should delete chip when enter button is pressed on delete button', () => {
258258
HelperTestFunctions.verifyChipsCount(fix, 4);
259259

260260
const deleteButtonElement = HelperTestFunctions.getDeleteButton(fix);

0 commit comments

Comments
 (0)