mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
test(site): cover site maintenance dialogs (#562)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Site, SiteStatistic, SiteUserData } from '@/api/types'
|
||||
import type { DownloaderConf, Site, SiteStatistic, SiteUserData } from '@/api/types'
|
||||
|
||||
let siteSeed = 0
|
||||
|
||||
@@ -37,3 +37,15 @@ export function createSiteUserData(overrides: Partial<SiteUserData> = {}): SiteU
|
||||
...overrides,
|
||||
}
|
||||
}
|
||||
|
||||
/** 构造可用的下载器配置测试记录。 */
|
||||
export function createSiteDownloader(overrides: Partial<DownloaderConf> = {}): DownloaderConf {
|
||||
return {
|
||||
config: {},
|
||||
default: false,
|
||||
enabled: true,
|
||||
name: '测试下载器',
|
||||
type: 'qbittorrent',
|
||||
...overrides,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user