41 lines
941 B
TypeScript
41 lines
941 B
TypeScript
import { Sector } from '@app/domain/sectors/sector.model';
|
|
import { of } from 'rxjs';
|
|
|
|
export const fakeSectors: Sector[] = [
|
|
{
|
|
id: 'sector_001',
|
|
created: '2025-01-01T10:00:00Z',
|
|
updated: '2025-01-05T14:00:00Z',
|
|
nom: 'Informatique',
|
|
},
|
|
{
|
|
id: 'sector_002',
|
|
created: '2025-01-02T11:00:00Z',
|
|
updated: '2025-01-06T15:00:00Z',
|
|
nom: 'Design graphique',
|
|
},
|
|
{
|
|
id: 'sector_003',
|
|
created: '2025-01-03T12:00:00Z',
|
|
updated: '2025-01-07T16:00:00Z',
|
|
nom: 'Marketing digital',
|
|
},
|
|
{
|
|
id: 'sector_004',
|
|
created: '2025-01-04T13:00:00Z',
|
|
updated: '2025-01-08T17:00:00Z',
|
|
nom: 'Finance et comptabilité',
|
|
},
|
|
{
|
|
id: 'sector_005',
|
|
created: '2025-01-05T14:00:00Z',
|
|
updated: '2025-01-09T18:00:00Z',
|
|
nom: 'Ressources humaines',
|
|
},
|
|
];
|
|
|
|
export const mockSectorRepo = {
|
|
list: jest.fn().mockReturnValue(of([])),
|
|
getOne: jest.fn().mockReturnValue(of({} as Sector)),
|
|
};
|