mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 20:56:19 -08:00
feat(downloads): recover missing completed files
This commit is contained in:
1 parent
bd61426d8e
commit
8a685ebf20
10 files changed
+361
-1
No files matched your search
@@ -100,6 +100,7 @@ describe('RuntimeCapabilitiesService', () => {
|
||||
downloadsPause: jest.fn(),
|
||||
downloadsResume: jest.fn(),
|
||||
downloadsRetry: jest.fn(),
|
||||
downloadsRedownloadMissing: jest.fn(),
|
||||
downloadsRemove: jest.fn(),
|
||||
downloadsGetList: jest.fn(),
|
||||
downloadsGet: jest.fn(),
|
||||
@@ -382,6 +383,13 @@ describe('RuntimeCapabilitiesService', () => {
|
||||
onDownloadsUpdate: jest.fn(),
|
||||
};
|
||||
|
||||
expect(service.supportsDownloads).toBe(false);
|
||||
|
||||
testWindow.electron = {
|
||||
...testWindow.electron,
|
||||
downloadsRedownloadMissing: jest.fn(),
|
||||
};
|
||||
|
||||
expect(service.supportsDownloads).toBe(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -186,6 +186,7 @@ export class RuntimeCapabilitiesService {
|
||||
'downloadsPause',
|
||||
'downloadsResume',
|
||||
'downloadsRetry',
|
||||
'downloadsRedownloadMissing',
|
||||
'downloadsRemove',
|
||||
'downloadsGetList',
|
||||
'downloadsGet',
|
||||
|
||||
Reference in new issue
Block a user