website refactor
This commit is contained in:
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user