Commit b251ad99 authored by Jacob Kaufman's avatar Jacob Kaufman
Browse files

Fixed JS testing with newest commit

- changed file names
- updated MousePositionTest
- updated AstroMathTest
parent 0feb63e6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -71,10 +71,6 @@ export default L.Control.MousePositionControl = L.Control.extend({
    this.latitudeTypeOgraphic = L.DomUtil.get("consoleLatTypeOgraphic");
    L.DomEvent.on(this.latitudeTypeOgraphic, "click", this.changeLatType, this);
    
    //this.latitudeTypeOcentric.class = "Planetocentric";
    console.log(this.latitudeTypeOcentric.class);
    

    return this.container;
  },

+0 −0

File moved.

+0 −0

File moved.

+8 −5
Original line number Diff line number Diff line
@@ -2,14 +2,17 @@ import 'jsdom-global/register';
import AstroMath from '../src/js/AstroMath';
import { expect } from "chai";

// global class AstroMath variable
let testMath = new AstroMath("mars");

describe('Testing AstroMath Functions', function() {

  let radii;
  let testMath; 
  beforeEach(function() {
    // setup math class
    let testMath = new AstroMath("mars");
    radii  = {
      a: 3396190, 
      c: 3376200 
    };
    
    testMath = new AstroMath("mars",radii);
  });
 
  afterEach(function() {
+0 −0

File moved.

Loading