add VehicleConsumer mock (#359)

This commit is contained in:
Tristan Timblin
2023-06-14 18:08:45 -04:00
committed by GitHub
parent de1a5dcd2d
commit 68ac95b33b
7 changed files with 170 additions and 84 deletions

View File

@@ -92,6 +92,10 @@ export const VehicleProvider = ({ children }) => {
return <div data-testid="mocked-vehicleprovider">{children}</div>;
};
export const VehicleConsumer = ({ children }) => {
return children();
};
export const useVehicleContext = () => ({
busy,
models,