Commit ba846e42 authored by Laura, Jason R's avatar Laura, Jason R
Browse files

Merge branch 'fixtests' into 'main'

Fixes AstroMath tests

See merge request asc/geostac!15
parents eb5861e4 4850b57c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@
    "jquery": "^3.6.0",
    "leaflet": "^1.7.1",
    "leaflet-draw": "^1.0.4",
    "mocha-jsdom": "^2.0.0",
    "proj4leaflet": "^1.0.2",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
+3 −3
Original line number Diff line number Diff line
@@ -63,10 +63,10 @@ describe('Testing AstroMath Functions', function() {
    })

    // testing lonTo360 function
    it('Testing lonTo360 Cylindrical: 0 should be 180 ', function() {
    it('Testing lonTo360 Cylindrical: 0 should be 0 ', function() {
      // add an assertion
      let majorRadius = testMath.lonTo360(0, "EPSG:4326");
      expect(majorRadius).to.equal(180);
      expect(majorRadius).to.equal(0);
    })

    // testing lonTo360 function
@@ -86,7 +86,7 @@ describe('Testing AstroMath Functions', function() {
    // testing domainToPositiveWest function
    it('Testing domainToPositiveWest Not Normal Range: 0 should be 360 ', function() {
      // add an assertion
      let majorRadius = testMath.domainToPositiveWest(-180, false);
      let majorRadius = testMath.domainToPositiveWest(-180, true);
      expect(majorRadius).to.equal(180);
    })