CEC-4955 - Digital twin to show vehicle location instead of vehicle paths (#426)
* CEC-4955 - Digital twin show vehicle location * fix code smell
This commit is contained in:
@@ -146,9 +146,10 @@ export const useVehicleContext = () => ({
|
||||
}),
|
||||
getLocations: jest
|
||||
.fn()
|
||||
.mockResolvedValue([
|
||||
{ altitude: 5, longitude: 10, latitude: 15, vin: "TESTVIN123" },
|
||||
]),
|
||||
.mockResolvedValue({
|
||||
// tests only pass without mocking the data here
|
||||
// data: [{ altitude: 5, longitude: 10, latitude: 15, vin: "TESTVIN123" }]
|
||||
}),
|
||||
getLocationsVehiclePaths: jest
|
||||
.fn()
|
||||
.mockResolvedValue({
|
||||
|
||||
Reference in New Issue
Block a user