test(virtual-scroll): make cards test deterministic (#19049)

This commit is contained in:
Manu MA
2019-08-08 20:07:22 +02:00
committed by GitHub
parent ea3fdae2dd
commit 3c925bb27e

View File

@@ -69,7 +69,7 @@
const items = [];
for (var i = 0; i < 1000; i++) {
items.push({
content: lorem.substring(0, (Math.random() * (lorem.length - 100)) + 100)
content: lorem.substring(0, lorem.length * ((i % 4)+1) / 5)
});
}
virtual.items = items;