{"size": 674, "ext": "js", "max_stars_repo_path": "spec/CalculatorSpec.js", "max_stars_repo_name": "ilonade/Calculator", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "spec/CalculatorSpec.js", "max_issues_repo_name": "ilonade/Calculator", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "spec/CalculatorSpec.js", "max_forks_repo_name": "ilonade/Calculator", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.9230769231, "max_line_length": 53, "alphanum_fraction": 0.5578635015}
describe("Calculator", function () {
   it("adds two numbers", function () {
      expect(add(1, 2)).toEqual(3);
   });

    it("subtracts two numbers", function () {
       expect(subtract(6, 2)).toEqual(4);
       expect(subtract(-9, -1)).toEqual(-8);
    });

    it("multiplies two numbers", function () {
       expect(multiply(3, 3)).toEqual(9);
    });

    it("divides two numbers", function () {
       expect(divide(10, 2)).toEqual(5);
    });

    it("returns 0 when dividing by 0", function () {
       expect(divide(10, 0)).toEqual(0);
    });

    it("converts number to percentage", function () {
       expect(convertToPercent(45)).toEqual(0.45);
    });
});