Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
"jquery": "^3.6.0", "jquery": "^3.6.0",
"leaflet": "^1.7.1", "leaflet": "^1.7.1",
"leaflet-draw": "^1.0.4", "leaflet-draw": "^1.0.4",
"mocha-jsdom": "^2.0.0",
"proj4leaflet": "^1.0.2", "proj4leaflet": "^1.0.2",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2", "react-dom": "^17.0.2",
......
...@@ -63,10 +63,10 @@ describe('Testing AstroMath Functions', function() { ...@@ -63,10 +63,10 @@ describe('Testing AstroMath Functions', function() {
}) })
// testing lonTo360 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 // add an assertion
let majorRadius = testMath.lonTo360(0, "EPSG:4326"); let majorRadius = testMath.lonTo360(0, "EPSG:4326");
expect(majorRadius).to.equal(180); expect(majorRadius).to.equal(0);
}) })
// testing lonTo360 function // testing lonTo360 function
...@@ -86,7 +86,7 @@ describe('Testing AstroMath Functions', function() { ...@@ -86,7 +86,7 @@ describe('Testing AstroMath Functions', function() {
// testing domainToPositiveWest function // testing domainToPositiveWest function
it('Testing domainToPositiveWest Not Normal Range: 0 should be 360 ', function() { it('Testing domainToPositiveWest Not Normal Range: 0 should be 360 ', function() {
// add an assertion // add an assertion
let majorRadius = testMath.domainToPositiveWest(-180, false); let majorRadius = testMath.domainToPositiveWest(-180, true);
expect(majorRadius).to.equal(180); expect(majorRadius).to.equal(180);
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment