mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-23 09:19:06 +00:00
fix(torrent): use live peer telemetry in properties
- source the Properties peer card from live Aria2 status counts - distinguish connected peers from unavailable peer details - remove redundant peer-summary IPC and harden count parsing - add responsive, accessible peer/seeder presentation and regressions
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { isTorrentLiveStatus } from './propertiesTorrentLifecycle';
|
||||
|
||||
describe('Torrent live lifecycle', () => {
|
||||
it('identifies statuses with live Aria2 telemetry', () => {
|
||||
expect(isTorrentLiveStatus('downloading')).toBe(true);
|
||||
expect(isTorrentLiveStatus('retrying')).toBe(true);
|
||||
expect(isTorrentLiveStatus('paused')).toBe(false);
|
||||
expect(isTorrentLiveStatus('completed')).toBe(false);
|
||||
expect(isTorrentLiveStatus('seeding')).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user