* chore: add core module test cases * chore: fix tests * chore: add code coverage report * chore: split coverage step * chore: split coverage step * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * chore: update tests * chore: add web utils test cases * chore: add restful and helper tests * chore: add tests
12 lines
368 B
TypeScript
12 lines
368 B
TypeScript
import { DownloadManager } from './download';
|
|
|
|
it('should set a network request for a specific file', () => {
|
|
const downloadManager = new DownloadManager();
|
|
const fileName = 'testFile';
|
|
const request = { url: 'http://example.com' };
|
|
|
|
downloadManager.setRequest(fileName, request);
|
|
|
|
expect(downloadManager.networkRequests[fileName]).toEqual(request);
|
|
});
|