mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: time to first response metric
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user