Exercises - Tuong-Nguyen/JavaScript-Structure GitHub Wiki

Implement Classes and Unit Tests for FleetDataService:

Vehicle-DataService

Sample JSON data

const data = [
  {
    license: 'QRS678',
    type: 'drone',
    model: 'Google 3800',
    airTimeHours: '300',
    base: 'New York',
    latlong: '40.779423 -73.969411'
  },
  {
    license: 'AT9900',
    type: 'car',
    make: 'Tesla',
    model: 'Quick Transport',
    miles: '15600',
    latlong: '40.773272 -73.968875'
  },
  {
    license: 'AT2000',
    type: 'car',
    make: 'Uber',
    model: 'Auto Taxi Plus',
    miles: '400',
    latlong: '40.778878 -73.958435'
  },
  {
    license: 'QRS678',
    type: 'drone',
    model: 'Google 3801',
    airTimeHours: '230',
    base: 'New York',
    latlong: '40.779423 -73.969411'
  },
  {
    license: 'QRS6798',
    type: 'drone',
    model: 'Google 3801',
    airTimeHours: '230',
    base: 'Texas',
    latlong: '40.779423 -73.969411'
  },
  {
    license: 'AT2000',
    type: 'car',
    make: 'Grab',
    model: 'Auto Taxi Plus',
    miles: '425',
    latlong: '40.778878 -73.958435'
  },
  {
    license: 'AT2000',
    type: 'car',
    make: 'Grab',
    model: 'Auto Taxi Plus',
    miles: '500',
    latlong: '40.778878 -73.958435'
  }
];
export default data;