In one of my data fields I'm working on I wanted to test my distance calculation, but it's throwing a permission required error (Positioning permission)
Expected behaviour: In the ideal world all code within the unit test code should not be subject to any permission checking at all.
Code to reproduce:
(:test)
function verifyDistanceCalculation(logger) {
var locString = "51.5, 0";
var location1 = Position.parse(locString, Position.GEO_DEG);
/**var location1 = new Position.Location(
{
:latitude => 51.5,
:longitude => 0,
:format => :degrees
}*/
return true;
}