fix(library): 优化观看历史标题加载

This commit is contained in:
Zhou Weidong committed 2026-10-22 12:42:58 +08:00
1 parent abfca7a3be
commit 78114fa46d
11 files changed
+135 -88

No files matched your search

-30
View File
@@ -50,34 +50,4 @@ void main() {
expect(page.list.single.episodeNumber, 6);
expect(page.list.single.totalEpisodes, 68);
});
test(
'should_wrap_legacy_list_when_backend_has_not_deployed_paging',
() async {
final adapter = FakeHttpAdapter(
(_) async => FakeHttpResponse(
jsonEncode({
'code': 0,
'message': 'ok',
'data': [
{
'dramaId': '5',
'episodeId': '7',
'positionMs': '1000',
'durationMs': '2000',
},
],
}),
),
);
final api = WatchApi(
ApiClient(baseUrl: 'http://127.0.0.1:8081', adapter: adapter),
);
final page = await api.recent();
expect(page.total, 1);
expect(page.list.single.dramaId, '5');
},
);
}