mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-10 11:37:21 +00:00
feat(torrent): complete lifecycle controls and diagnostics
- add durable Torrent telemetry, availability, sharing, relocation, and web-seed workflows\n- fence queue ownership, lifecycle recovery, persistence, and native control races\n- add localized UI, generated bindings, regression coverage, and smoke validation
This commit is contained in:
@@ -938,6 +938,24 @@ describe('useDownloadStore', () => {
|
||||
expect(normalized.torrentEncryptionPolicy).toBeUndefined();
|
||||
});
|
||||
|
||||
it('recovers an interrupted Torrent move without discarding the native destination marker', () => {
|
||||
const normalized = normalizePersistedDownloadProgress({
|
||||
id: 'interrupted-torrent-move',
|
||||
url: 'magnet:?xt=urn:btih:bad',
|
||||
fileName: 'payload',
|
||||
status: 'moving',
|
||||
category: 'Other',
|
||||
dateAdded: '',
|
||||
destination: '/downloads/new',
|
||||
torrentMoveDestination: '/downloads/new',
|
||||
torrentMoveRestoreStatus: 'paused'
|
||||
});
|
||||
|
||||
expect(normalized.status).toBe('paused');
|
||||
expect(normalized.torrentMoveDestination).toBe('/downloads/new');
|
||||
expect(normalized.torrentMoveRestoreStatus).toBe('paused');
|
||||
});
|
||||
|
||||
it('normalizes proxy settings for download dispatch', async () => {
|
||||
expect(normalizeCustomProxy('127.0.0.1', 8080)).toBe('http://127.0.0.1:8080');
|
||||
expect(normalizeCustomProxy('http://proxy.local:9000', 8080)).toBe('http://proxy.local:9000');
|
||||
|
||||
Reference in New Issue
Block a user