Skip to content

Commit cc050da

Browse files
committed
Update ve-table-virtual-scroll.spec.js
update unit test: dynamically turns virtual scrolling on
1 parent 34bae82 commit cc050da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/specs/ve-table-virtual-scroll.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe("veTable virtual scroll", () => {
9797
expect(wrapper.html()).toMatchSnapshot();
9898
});
9999

100-
it("virtualScrollOption disbale enable", async () => {
100+
it("dynamically turns virtual scrolling on", async () => {
101101
const wrapper = mount(veTable, {
102102
propsData: {
103103
columns: [
@@ -156,6 +156,9 @@ describe("veTable virtual scroll", () => {
156156

157157
expect(wrapper.find(".ve-table-virtual-scroll").exists()).toBe(true);
158158
expect(wrapper.find(".ve-table-virtual-phantom").exists()).toBe(true);
159+
expect(wrapper.findAll(".ve-table-body-tr").length).toBe(
160+
TABLE_ROW_COUNT,
161+
);
159162
});
160163

161164
it("same row height", async () => {

0 commit comments

Comments
 (0)