mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-22 17:06:40 +00:00
ca32b772a2
- 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
13 lines
514 B
TypeScript
13 lines
514 B
TypeScript
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);
|
|
});
|
|
});
|