text: import { Person } from './../src/scripts.js';
  
  describe ('Person', () => {
    let youngPerson = new Person(35);
  
    test ('this should test that the persons input is stored into the constructor as their age in Earth years', () => {
      expect(youngPerson.age).toEqual(35);
    });
  
    test ('this should test for the persons age in Venus years', () => {
      youngPerson.calcVenus();
      expect(youngPerson.venusAge).toEqual(56);
    });
  
    test ('this should test for the persons age in Mercury years', () => {
      youngPerson.calcMercury();
      expect(youngPerson.mercuryAge).toEqual(145);
    });
  
    test ('this should test for the persons age in Mars years', () => {
      youngPerson.calcMars();
      expect(youngPerson.marsAge).toEqual(18);
    });
  
    test ('this should test for the persons age in Jupiter years', () => {
      youngPerson.calcJupiter();
      expect(youngPerson.jupiterAge).toEqual(2);
    });
  
    test ('this should test for the persons time left on Earth', () => {
      expect(youngPerson.earthLifeExpectancy()).toEqual(37);
    });
  
    test ('this should test for the persons time left on Venus', () => {
      expect(youngPerson.venusLifeExpectancy()).toEqual(60);
    });
  
    test ('this should test for the persons time left on Mercury', () => {
      expect(youngPerson.mercuryLifeExpectancy()).toEqual(155);
    });
  
    test ('should test for the persons time left on Mars', () => {
      expect(youngPerson.marsLifeExpectancy()).toEqual(20);
    });
  
    test ('this should test for the persons time left on Jupiter', () => {
      expect(youngPerson.jupiterLifeExpectancy()).toEqual(4);
    });
  });
  
  // Tests for a person older than the Life Expectancy on each planet. //
  describe ('Person', () => {
    let elderlyPerson = new Person(90);
  
    test ('this should test that the persons input is stored into the constructor as their age in Earth years', () => {
      expect(elderlyPerson.age).toEqual(90);
    });
  
    test ('this should test for the persons age in Venus years', () => {
      elderlyPerson.calcVenus();
      expect(elderlyPerson.venusAge).toEqual(145);
    });
  
    test ('this should test for the persons age in Mercury years', () => {
      elderlyPerson.calcMercury();
      expect(elderlyPerson.mercuryAge).toEqual(375);
    });
  
    test ('this should test for the persons age in Mars years', () => {
      elderlyPerson.calcMars();
      expect(elderlyPerson.marsAge).toEqual(47);
    });
  
    test ('this should test for the persons age in Jupiter years', () => {
      elderlyPerson.calcJupiter();
      expect(elderlyPerson.jupiterAge).toEqual(7);
    });
  
    test ('this should test for the persons time left on Earth', () => {
      expect(elderlyPerson.earthLifeExpectancy()).toEqual(18);
    });
  
    test ('this should test for the persons time left on Venus', () => {
      expect(elderlyPerson.venusLifeExpectancy()).toEqual(29);
    });
  
    test ('this should test for the persons time left on Mercury', () => {
      expect(elderlyPerson.mercuryLifeExpectancy()).toEqual(75);
    });
  
    test ('should test for the persons time left on Mars', () => {
      expect(elderlyPerson.marsLifeExpectancy()).toEqual(9);
    });
  
    test ('this should test for the persons time left on Jupiter', () => {
      expect(elderlyPerson.jupiterLifeExpectancy()).toEqual(1);
    });
  });
  
  // Test for a person of the same age as the Life-Expectancy on each planet. //
  describe ('Person', () => {
    let ofTheSameAge = new Person(72);
  
    test ('this should test that the persons input is stored into the constructor as their age in Earth years', () => {
      expect(ofTheSameAge.age).toEqual(72);
    });
  
    test ('this should test for the persons age in Venus years', () => {
      ofTheSameAge.calcVenus();
      expect(ofTheSameAge.venusAge).toEqual(116);
    });
  
    test ('this should test for the persons age in Mercury years', () => {
      ofTheSameAge.calcMercury();
      expect(ofTheSameAge.mercuryAge).toEqual(300);
    });
  
    test ('this should test for the persons age in Mars years', () => {
      ofTheSameAge.calcMars();
      expect(ofTheSameAge.marsAge).toEqual(38);
    });
  
    test ('this should test for the persons age in Jupiter years', () => {
      ofTheSameAge.calcJupiter();
      expect(ofTheSameAge.jupiterAge).toEqual(6);
    });
  
    test ('this should test for the persons time left on Earth', () => {
      expect(ofTheSameAge.earthLifeExpectancy()).toEqual(0);
    });
  
    test ('this should test for the persons time left on Venus', () => {
      expect(ofTheSameAge.venusLifeExpectancy()).toEqual(0);
    });
  
    test ('this should test for the persons time left on Mercury', () => {
      expect(ofTheSameAge.mercuryLifeExpectancy()).toEqual(0);
    });
  
    test ('should test for the persons time left on Mars', () => {
      expect(ofTheSameAge.marsLifeExpectancy()).toEqual(0);
    });
  
    test ('this should test for the persons time left on Jupiter', () => {
      expect(ofTheSameAge.jupiterLifeExpectancy()).toEqual(0);
    });
  });