mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
ci: add test for checking groups order
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user