Update tests to reflect not supressing first date separator
parent
a29e7da06b
commit
69bce6aee5
|
@ -234,7 +234,6 @@ describe('TimelinePanel', function() {
|
||||||
// 5 times, and we should have given up paginating
|
// 5 times, and we should have given up paginating
|
||||||
expect(client.paginateEventTimeline.callCount).toEqual(5);
|
expect(client.paginateEventTimeline.callCount).toEqual(5);
|
||||||
expect(messagePanel.props.backPaginating).toBe(false);
|
expect(messagePanel.props.backPaginating).toBe(false);
|
||||||
expect(messagePanel.props.suppressFirstDateSeparator).toBe(false);
|
|
||||||
|
|
||||||
// now, if we update the events, there shouldn't be any
|
// now, if we update the events, there shouldn't be any
|
||||||
// more requests.
|
// more requests.
|
||||||
|
@ -339,7 +338,6 @@ describe('TimelinePanel', function() {
|
||||||
awaitScroll().then(() => {
|
awaitScroll().then(() => {
|
||||||
// we should now have loaded the first few events
|
// we should now have loaded the first few events
|
||||||
expect(messagePanel.props.backPaginating).toBe(false);
|
expect(messagePanel.props.backPaginating).toBe(false);
|
||||||
expect(messagePanel.props.suppressFirstDateSeparator).toBe(true);
|
|
||||||
|
|
||||||
// back-paginate until we hit the start
|
// back-paginate until we hit the start
|
||||||
return backPaginate();
|
return backPaginate();
|
||||||
|
@ -347,7 +345,6 @@ describe('TimelinePanel', function() {
|
||||||
// hopefully, we got to the start of the timeline
|
// hopefully, we got to the start of the timeline
|
||||||
expect(messagePanel.props.backPaginating).toBe(false);
|
expect(messagePanel.props.backPaginating).toBe(false);
|
||||||
|
|
||||||
expect(messagePanel.props.suppressFirstDateSeparator).toBe(false);
|
|
||||||
var events = scryEventTiles(panel);
|
var events = scryEventTiles(panel);
|
||||||
expect(events[0].props.mxEvent).toBe(timeline.getEvents()[0]);
|
expect(events[0].props.mxEvent).toBe(timeline.getEvents()[0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue