Flow TOC is complex ([https://www.mediawiki.org/wiki/Flow/Table_of_Contents_spec |spec], may be out-of-date)
It would be nice to have qunit tests for edge cases, e.g.:
- TOC doesn't re-request known topics
- TOC can handle updated state from server (new topics, topics in list moderated, requested topic moderated)
Also browser tests (using Talk:Flow QA, which is usually big so test setup can have "Pending board has 50 topics") for:
- fixed header shows current topic
- opened TOC shows current topic in top line
- clicking item in TOC goes to that topic
- etc.