website refactor

This commit is contained in:
2026-01-17 22:55:03 +01:00
parent 64d9e7fd16
commit 69d4cce7f1
64 changed files with 1146 additions and 1014 deletions

View File

@@ -151,13 +151,13 @@ describe('SeedDemoUsers', () => {
const saveCalls = (authRepository.save as any).mock.calls;
// Check that driver, owner, steward, admin, systemowner, superadmin have primaryDriverId
// Check that all users have primaryDriverId
const usersWithPrimaryDriverId = saveCalls.filter((call: any) => {
const user: User = call[0];
return user.getPrimaryDriverId() !== undefined;
});
expect(usersWithPrimaryDriverId.length).toBe(6); // All except sponsor
expect(usersWithPrimaryDriverId.length).toBe(7); // All users
});
});