Skip to content

Commit 0c9e364

Browse files
committed
Check column removal order.
1 parent dcc0ac6 commit 0c9e364

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/utils_removeColumns.test.ts

+13
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,17 @@ describe('Test utility functions', () => {
8484
expect(columns[0]).toEqual(['b', 'c']);
8585
});
8686

87+
it('should remove columns in the correct order', () => {
88+
const columns = [
89+
['a', 'b', 'c'],
90+
['d', 'e', 'f'],
91+
['g', 'h', 'i'],
92+
];
93+
94+
removeColumns(columns, [0, 2]);
95+
expect(columns.length).toEqual(3);
96+
expect(columns[0]).toEqual(['b']);
97+
expect(columns[1]).toEqual(['e']);
98+
});
99+
87100
});

0 commit comments

Comments
 (0)