CEC-287 Car connection status (#59) (#60)

* Car connection status

* Formatting
This commit is contained in:
John Wu
2021-06-23 14:52:12 -07:00
committed by GitHub
parent 99e24da105
commit e67d19edd7
6 changed files with 79 additions and 19 deletions

View File

@@ -25,11 +25,20 @@ export const useVehicleContext = () => ({
getYears: jest.fn(() => {
years = [2023, 2024];
}),
sendCommand: jest.fn((vin, command, parameters, token) => ({
vin,
sendCommand: jest.fn((vins, command, parameters, token) => ({
vins,
command,
parameters,
})),
getConnections: jest.fn((vins, token) => {
const result = {};
vins.forEach((vin) => {
result[vin] = true;
});
return result;
}),
});
export const setBusy = (val) => {