All files / apps/host/src/mocks data.ts

100% Statements 3/3
100% Branches 1/1
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 421x                                                             8x                    
export const REQUESTS_MOCK = [
  {
    id: '1',
    type: 'time_off',
    title: 'Time Off: Dec 20 - Dec 25',
    date: 'Dec 15',
    status: 'Pending',
  },
  {
    id: '2',
    type: 'book_room',
    title: 'Meeting Room: Q4 Strategy',
    date: 'Dec 12',
    status: 'Approved',
  },
  {
    id: '3',
    type: 'meal',
    title: 'Meal Reservation: Team Lunch',
    date: 'Dec 11',
    status: 'Approved',
  },
  {
    id: '4',
    type: 'maintenance',
    title: 'Maintenance: Leaky Faucet',
    date: 'Dec 10',
    status: 'Rejected',
  },
];
 
export const createSubmitRejectModalProps = (overrides = {}) => ({
  isOpen: true,
  note: '',
  isNoteValid: false,
  onChangeNote: jest.fn(),
  onReject: jest.fn(),
  onSubmit: jest.fn(),
  noteInputRef: { current: { focus: jest.fn(), blur: jest.fn() } } as any,
  ...overrides,
});