mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
UX: Timeline lookup on mega topics should use date of current post.
This commit is contained in:
parent
b4e1388f9b
commit
8f4cb1a742
3 changed files with 14 additions and 6 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue