const { generateRandom } = require('../../server/simulation/drone');

describe('generateRandom()', () => {

  const sampleArguments = {coords: {lat: 1, long: 1}, distance: 1000 };

  test('returns an object', () => {
    expect(
      typeof generateRandom(sampleArguments)
    ).toBe('object');
  });

  test('returns an object with an id', () => {
    expect(
      generateRandom(sampleArguments)
    ).toHaveProperty('id');
  });

  test('returns an object with a model', () => {
    expect(
      generateRandom(sampleArguments)
    ).toHaveProperty('model');
  });

  test('returns an object with an icon property', () => {
    expect(
      generateRandom(sampleArguments)
    ).toHaveProperty('icon');
  });

  test('returns an object with coords', () => {
    expect(
      generateRandom(sampleArguments)
    ).toHaveProperty('coords');
  });

  test('returns an object with a rating attribute', () => {
    expect(
      generateRandom(sampleArguments)
    ).toHaveProperty('rating');
  });

  test('returns an object with a missions_completed_7_days attribute', () => {
    expect(
      generateRandom(sampleArguments)
    ).toHaveProperty('missions_completed_7_days');

  });
});

@@ -988,32 +988,205 @@
 ating');%0A  %7D);%0A%0A
+  test('returns an object with a missions_completed attribute', () =%3E %7B%0A    expect(%0A      generateRandom(sampleArguments)%0A    ).toHaveProperty('missions_completed');%0A  %7D);%0A%0A
   test('returns 

Add tests to check missions_completed attribute in random drone generator