CEC-180 Cache Control (#30)
* Set cache expire to 1 day Add snapshot tests for new screens * Fix table pagniation random ids for snapshot tests * Auto reload on chunk load error * OTA Admin Portal => Admin Portal
This commit is contained in:
@@ -2,6 +2,7 @@ import React from "react";
|
||||
|
||||
let busy = false;
|
||||
let vehicles = [];
|
||||
let totalVehicles = 0;
|
||||
let error = null;
|
||||
|
||||
export const VehicleProvider = ({ children }) => {
|
||||
@@ -11,6 +12,7 @@ export const VehicleProvider = ({ children }) => {
|
||||
export const useVehicleContext = () => ({
|
||||
busy,
|
||||
vehicles,
|
||||
totalVehicles,
|
||||
getVehicles: jest.fn(() => vehicles),
|
||||
addVehicle: jest.fn(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user