{"size": 463, "ext": "js", "max_stars_repo_path": "src/__tests__/returnAngleFormula.js", "max_stars_repo_name": "opatiny/rpi-cylinder", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/__tests__/returnAngleFormula.js", "max_issues_repo_name": "opatiny/rpi-cylinder", "max_issues_repo_issues_event_min_datetime": "2021-05-07T03:36:04.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T06:01:22.000Z", "max_forks_repo_path": "src/__tests__/returnAngleFormula.js", "max_forks_repo_name": "opatiny/rpi-cylinder", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 38.5833333333, "max_line_length": 111, "alphanum_fraction": 0.7213822894}
var formula = require('../returnAngleFormula');

test('formula that returns the angle of the servos', function () {
    var xMassPosition = 0;
    var yMassPosition = 0;
    var bigRadius = 200;
    var radiusServo = 40;
    var distance = 200;
    expect(formula(xMassPosition, yMassPosition, bigRadius, radiusServo, distance)).toBeGreaterThanOrEqual(90);
    expect(formula(xMassPosition, -40, bigRadius, radiusServo, distance)).toBeGreaterThanOrEqual(90);
});
