Skip to content
Snippets Groups Projects
Commit 4850b57c authored by Laura, Jason R's avatar Laura, Jason R
Browse files

Fixes AstroMath tests

parent eb5861e4
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
......@@ -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);
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment