mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:57:15 +08:00
UX: Timeline lookup on mega topics should use date of current post.
This commit is contained in:
@ -151,6 +151,9 @@ QUnit.test("closestDaysAgoFor", assert => {
|
||||
assert.equal(postStream.closestDaysAgoFor(-1), 10);
|
||||
assert.equal(postStream.closestDaysAgoFor(0), 10);
|
||||
assert.equal(postStream.closestDaysAgoFor(10), 1);
|
||||
|
||||
postStream.set("timelineLookup", []);
|
||||
assert.equal(postStream.closestDaysAgoFor(1), undefined);
|
||||
});
|
||||
|
||||
QUnit.test("closestDaysAgoFor - empty", assert => {
|
||||
|
Reference in New Issue
Block a user