remove companion tests
This commit is contained in:
@@ -214,7 +214,7 @@ describe('RouteAccessPolicy', () => {
|
||||
describe('roleHomeRouteId', () => {
|
||||
it('should return correct route ID for driver role', () => {
|
||||
const result = policy.roleHomeRouteId('driver');
|
||||
expect(result).toBe('dashboard');
|
||||
expect(result).toBe('protected.dashboard');
|
||||
});
|
||||
|
||||
it('should return correct route ID for sponsor role', () => {
|
||||
|
||||
@@ -70,9 +70,10 @@ describe('SessionGateway', () => {
|
||||
|
||||
// Assert
|
||||
expect(result).toEqual(mockSession);
|
||||
expect(mockFetch).toHaveBeenCalledWith('/api/auth/session', {
|
||||
expect(mockFetch).toHaveBeenCalledWith('http://localhost:3101/auth/session', {
|
||||
headers: { cookie: 'gp_session=valid-token; other=value' },
|
||||
cache: 'no-store',
|
||||
credentials: 'include',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user