FIX: time to first response metric

This commit is contained in:
Régis Hanol
2015-08-04 18:23:56 +02:00
parent 98fa098e6f
commit 64dd28d885
2 changed files with 75 additions and 85 deletions

View File

@ -14,8 +14,11 @@ test("counts", function() {
equal(report.get('todayCount'), 5);
equal(report.get('yesterdayCount'), 4);
equal(report.sumDays(2, 4), 6, "adds the values for the given range of days, inclusive");
equal(report.valueFor(2, 4), 6, "adds the values for the given range of days, inclusive");
equal(report.get('lastSevenDaysCount'), 307, "sums 7 days excluding today");
report.set("method", "average");
equal(report.valueFor(2, 4), 2, "averages the values for the given range of days");
});
test("percentChangeString", function() {