Skip to content

Commit 42420a4

Browse files
committed
chore(*): remove commented expect, remove array index
1 parent 83e62a9 commit 42420a4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,6 @@ describe('Row Pinning #grid', () => {
198198
expect(row.pinned).toBe(false);
199199

200200
expect(grid.rowPinned.emit).toHaveBeenCalledTimes(2);
201-
// expect(grid.rowPinned.emit).toHaveBeenCalledWith({
202-
// rowID,
203-
// insertAtIndex: 0,
204-
// isPinned: false,
205-
// row
206-
// });
207201
});
208202

209203
it('should pin/unpin via grid API methods.', () => {
@@ -617,12 +611,12 @@ describe('Row Pinning #grid', () => {
617611
expect(paginator.totalPages).toEqual(3);
618612
});
619613

620-
it('should have the correct records shown for pages with pinned rows', () => {
614+
fit('should have the correct records shown for pages with pinned rows', () => {
621615
grid.gridAPI.get_row_by_index(0).pin();
622616

623617
let rows = grid.rowList.toArray();
624618

625-
[1, 2, 1, 2, 3, 4, 5].forEach((x, index) => expect(rows[index].cells.first.value).toEqual(x));
619+
[1, 1, 2, 3, 4, 5].forEach((x, index) => expect(rows[index].cells.first.value).toEqual(x));
626620

627621
grid.paginate(2);
628622
fix.detectChanges();

0 commit comments

Comments
 (0)