CEC-4595 - show online status of cars in fleet (#374)
* CEC-4595 - show online status of cars in fleet * fix mocking
This commit is contained in:
@@ -112,10 +112,14 @@ export const useVehicleContext = () => ({
|
||||
addVehicle: jest.fn(),
|
||||
getConnections: jest
|
||||
.fn().mockImplementation((vins, _token) => {
|
||||
const result = {};
|
||||
vins.forEach((vin) => {
|
||||
result[vin] = true;
|
||||
});
|
||||
const result = {
|
||||
"USWESTVIN12345678": true,
|
||||
"2:USWESTVIN12345678": false,
|
||||
"USWESTVIN12345679": true,
|
||||
"2:USWESTVIN12345679": false,
|
||||
"USWESTVIN12345670": true,
|
||||
"2:USWESTVIN12345670": false,
|
||||
};
|
||||
return Promise.resolve(result);
|
||||
}),
|
||||
getECUs: jest.fn(() => {
|
||||
|
||||
Reference in New Issue
Block a user