import React from "react"; const CarUpdatesContext = React.createContext(); let busy = false; let carUpdates = [ { id: 1, vin: "1G1FP87S3GN100062", updatepackage_id: 18, status: "downloaded", created: "2021-07-01T22:40:07.778509Z", updated: "2021-07-12T18:22:13.736755Z", }, ]; let totalCarUpdates = 1; export const CarUpdatesProvider = ({ children }) => { return
{children}
; }; export const useCarUpdatesContext = () => ({ busy, carUpdates, totalCarUpdates, deployCarUpdates: jest.fn((data) => data), getCarUpdates: jest.fn(() => carUpdates), getVINUpdates: jest.fn(() => carUpdates), startMonitor: jest.fn(), stopMonitor: jest.fn(), });