v1
3/26/2022 by vanowm -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const quick = {temp: {customer:{_id: 1}}},
      vehicles = {vehicles: [{owner: {_id: 2}}, {owner: {_id: 1}}, null, "bla", 123, ["array"]]};

delete caserun single casemove downdrag and drop case


ready



const d = vehicles.vehicles.filter((vehicle) => vehicle && vehicle.owner && vehicle.owner._id === quick.temp.customer._id);

delete caserun single casemove upmove downdrag and drop case


ready



const d = vehicles.vehicles.filter((vehicle) => vehicle?.owner?._id === quick.temp.customer._id);
delete caserun single casemove upmove downdrag and drop case


ready



const d = vehicles.vehicles.filter((vehicle) => vehicle instanceof Object && vehicle.owner instanceof Object && vehicle.owner._id === quick.temp.customer._id);
delete caserun single casemove updrag and drop case


ready



const d = vehicles.vehicles.filter((vehicle) =>
{
  try
  {
  	return vehicle.owner._id === quick.temp.customer._id
  }
  catch(er){}
});
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN