Skip to content

Commit 38bf7bf

Browse files
wilsonafc163
authored andcommitted
fix(ci): revise strange test case in fixedColumns test
1 parent 80e86cd commit 38bf7bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Table.fixedColumns.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,20 @@ describe('Table.fixedColumns', () => {
163163
simulateTableShow();
164164
wrapper.setProps({});
165165
fixedLeftRows.forEach((tr, i) => {
166-
expect(tr.style.height).toBe(i === 0 ? '29.5px' : rowHeight);
166+
expect(tr.style.height).toBe(rowHeight);
167167
});
168168
fixedRightRows.forEach((tr, i) => {
169-
expect(tr.style.height).toBe(i === 0 ? '29.5px' : rowHeight);
169+
expect(tr.style.height).toBe(rowHeight);
170170
});
171171

172172
// <Table /> is hidden.
173173
simulateTableHidden();
174174
wrapper.update();
175175
fixedLeftRows.forEach((tr, i) => {
176-
expect(tr.style.height).toBe(i === 0 ? '29.5px' : rowHeight);
176+
expect(tr.style.height).toBe(rowHeight);
177177
});
178178
fixedRightRows.forEach((tr, i) => {
179-
expect(tr.style.height).toBe(i === 0 ? '29.5px' : rowHeight);
179+
expect(tr.style.height).toBe(rowHeight);
180180
});
181181
});
182182

0 commit comments

Comments
 (0)