{"size": 406, "ext": "js", "max_stars_repo_path": "spec/weatherSpec.js", "max_stars_repo_name": "Caitlin-cooling/airport_challenge2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "spec/weatherSpec.js", "max_issues_repo_name": "Caitlin-cooling/airport_challenge2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "spec/weatherSpec.js", "max_forks_repo_name": "Caitlin-cooling/airport_challenge2", "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": 23.8823529412, "max_line_length": 53, "alphanum_fraction": 0.6354679803}
describe("Weather", function() {

  beforeEach(function(){
    weather = new Weather ();
  })

  it("determines the weather as sunny", function() {
    spyOn(Math, "random").and.returnValue(4);
    expect(weather.getWeather()).toBe("Sunny")
  });

  it("determines the weather as stormy", function() {
    spyOn(Math, "random").and.returnValue(0);
    expect(weather.getWeather()).toBe("Stormy")
  });
});
