Skip to content

Commit ecc741c

Browse files
committed
also comment unused code
1 parent e653968 commit ecc741c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/compass-indexes/src/components/regular-indexes-table/regular-indexes-table.spec.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,22 +395,26 @@ describe('RegularIndexesTable Component', function () {
395395
renderIndexList({ isWritable: false, readOnly: false, indexes: indexes });
396396
const indexesList = screen.getByTestId('indexes-list');
397397
expect(indexesList).to.exist;
398+
// TODO
399+
/*
398400
indexes.forEach((index) => {
399401
const indexRow = screen.getByTestId(`indexes-row-${index.name}`);
400-
// TODO
401-
//expect(within(indexRow).queryByTestId('indexes-actions-field')).to.not.exist;
402+
expect(within(indexRow).queryByTestId('indexes-actions-field')).to.not.exist;
402403
});
404+
*/
403405
});
404406

405407
it('does not render delete and hide/unhide button when a user can not modify indexes (isWritable, readOnly)', function () {
406408
renderIndexList({ isWritable: true, readOnly: true, indexes: indexes });
407409
const indexesList = screen.getByTestId('indexes-list');
408410
expect(indexesList).to.exist;
411+
// TODO
412+
/*
409413
indexes.forEach((index) => {
410414
const indexRow = screen.getByTestId(`indexes-row-${index.name}`);
411-
// TODO
412-
//expect(within(indexRow).queryByTestId('indexes-actions-field')).to.not.exist;
415+
expect(within(indexRow).queryByTestId('indexes-actions-field')).to.not.exist;
413416
});
417+
*/
414418
});
415419

416420
describe('sorting', function () {

0 commit comments

Comments
 (0)