fix(mine): 支持未登录展示互动计数
This commit is contained in:
1 parent
06a2f6d7c0
commit
8d511933df
4 files changed
+334
-19
No files matched your search
@@ -60,6 +60,20 @@ void main() {
|
||||
logic.dispose();
|
||||
});
|
||||
|
||||
test('should_clear_recent_when_identity_is_reset', () async {
|
||||
final history = FakeWatchHistory()..recentRecords = const [_record];
|
||||
final logic = MineLogic(history: history);
|
||||
await pumpEventQueue();
|
||||
|
||||
logic.resetRecent();
|
||||
|
||||
expect(logic.recent, isEmpty);
|
||||
expect(logic.watchRecordTotal, isNull);
|
||||
expect(logic.recentLoading, isFalse);
|
||||
expect(logic.recentError, isNull);
|
||||
logic.dispose();
|
||||
});
|
||||
|
||||
testWidgets('should_forward_action_when_embedded_or_pop_when_standalone', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
Reference in new issue
Block a user