Skip to content

Commit 0c30c2e

Browse files
committed
chore(*): removing commented out tests
1 parent 03a0eaa commit 0c30c2e

File tree

1 file changed

+3
-38
lines changed

1 file changed

+3
-38
lines changed

projects/igniteui-angular/src/lib/list/list.component.spec.ts

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ describe('List', () => {
334334

335335
expect(list.itemClicked.emit).toHaveBeenCalledTimes(2);
336336
expect(list.itemClicked.emit).toHaveBeenCalledWith(args);
337-
337+
338338
list.headers[0].element.dispatchEvent(event);
339-
339+
340340
expect(list.itemClicked.emit).toHaveBeenCalledTimes(3);
341341
expect(list.itemClicked.emit).toHaveBeenCalledWith(args);
342342
});
@@ -359,25 +359,6 @@ describe('List', () => {
359359
expect(list.itemClicked.emit).toHaveBeenCalledOnceWith(args);
360360
});
361361

362-
// It should not emit itemClicked at all while panning. Only panning events should be emitted.
363-
// it('should emit ItemClicked with correct direction argument when panning left', () => {
364-
// const fixture = TestBed.createComponent(ListWithPanningTemplatesComponent);
365-
// const list = fixture.componentInstance.list;
366-
367-
// spyOn(list.itemClicked, 'emit').and.callThrough();
368-
369-
// fixture.detectChanges();
370-
// const itemNativeElements = fixture.debugElement.queryAll(By.css('igx-list-item'));
371-
// panItem(itemNativeElements[1], -0.8); // operating over the second list item because the first one is a header
372-
373-
// const args: IListItemClickEventArgs = {
374-
// item: list.items[0],
375-
// event: null,
376-
// direction: IgxListPanState.LEFT
377-
// };
378-
// expect(list.itemClicked.emit).toHaveBeenCalledOnceWith(args);
379-
// });
380-
381362
it('should emit ItemClicked with correct direction argument when swiping right', () => {
382363
const fixture = TestBed.createComponent(ListWithPanningTemplatesComponent);
383364
const list = fixture.componentInstance.list;
@@ -396,22 +377,6 @@ describe('List', () => {
396377
expect(list.itemClicked.emit).toHaveBeenCalledOnceWith(args);
397378
});
398379

399-
// It should not emit itemClicked at all while panning. Only panning events should be emitted.
400-
// it('should emit ItemClicked with correct direction argument when panning right', (done) => {
401-
// const fixture = TestBed.createComponent(ListWithPanningTemplatesComponent);
402-
// const list = fixture.componentInstance.list;
403-
404-
// list.itemClicked.subscribe((eventArgs) => {
405-
// expect(eventArgs.direction).toBe(IgxListPanState.RIGHT);
406-
// unsubscribeEvents(list);
407-
// done();
408-
// });
409-
410-
// fixture.detectChanges();
411-
// const itemNativeElements = fixture.debugElement.queryAll(By.css('igx-list-item'));
412-
// panItem(itemNativeElements[1], 0.8); // operating over the second list item because the first one is a header
413-
// });
414-
415380
it('should display multiple headers properly.', () => {
416381
const fixture = TestBed.createComponent(TwoHeadersListComponent);
417382
const list = fixture.componentInstance.list;
@@ -485,7 +450,7 @@ describe('List', () => {
485450

486451
elementRefCollection = fixture.debugElement.queryAll(By.css('igx-list-item'));
487452
panItem(elementRefCollection[1], 0.8);
488-
453+
489454
expect(item.panState).toBe(IgxListPanState.NONE);
490455

491456
elementRefCollection = fixture.debugElement.queryAll(By.css('igx-list-item'));

0 commit comments

Comments
 (0)