passing react tests

This commit is contained in:
Drew Taylor
2021-07-21 17:15:34 -07:00
parent 1bb679a3f8
commit e09ce9bd41
16 changed files with 747 additions and 332 deletions

View File

@@ -11,7 +11,7 @@ const data = [
const vehiclesAPI = {
getVehicles: async (search, token) => { return { data }; },
addVehicle: async (vehicle, token) => {
addVehicle: async (vehicle, token) => {
data.push(vehicle);
return vehicle;
},
@@ -38,7 +38,10 @@ const vehiclesAPI = {
});
return result;
}
},
getLocations: jest.fn().mockResolvedValue([
{ "altitude": 5, "longitude": 10, "latitude": 15, "vin": "TESTVIN123" },
]),
};
export default vehiclesAPI;