mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 06:41:24 +08:00
Moved JSHint into Qunit suite. It's much harder to forget about now!
This commit is contained in:
@ -27,15 +27,15 @@ test("formating medium length dates", function() {
|
||||
format = "medium";
|
||||
var strip = function(html){
|
||||
return $(html).text();
|
||||
}
|
||||
};
|
||||
|
||||
var shortDate = function(days){
|
||||
return moment().subtract('days', days).format('D MMM');
|
||||
}
|
||||
};
|
||||
|
||||
var shortDateYear = function(days){
|
||||
return moment().subtract('days', days).format('D MMM, YYYY');
|
||||
}
|
||||
};
|
||||
|
||||
leaveAgo = true;
|
||||
equal(strip(formatMins(1.4)), "1 min ago");
|
||||
|
Reference in New Issue
Block a user