ci: add test for checking groups order

This commit is contained in:
thecodrr
2020-02-23 11:09:41 +05:00
parent 4283a5ba34
commit 38d1cb292a

View File

@@ -56,6 +56,8 @@ const groupedTest = (type, special = false) =>
expect(grouped.items.length).toBeGreaterThan(0);
expect(grouped.groups.length).toBeGreaterThan(0);
expect(grouped.groupCounts.length).toBeGreaterThan(0);
// check order
expect(grouped.groups[0].title).toBe("Pinned");
return;
}
expect(grouped.length).toBeGreaterThan(0);