mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 14:51:29 +03:00
Fixed youtube-dl test
This commit is contained in:
@@ -631,11 +631,10 @@ describe('youtube-dl', async function() {
|
|||||||
await youtubedl_api.checkForYoutubeDLUpdate();
|
await youtubedl_api.checkForYoutubeDLUpdate();
|
||||||
});
|
});
|
||||||
it('Check latest version', async function() {
|
it('Check latest version', async function() {
|
||||||
|
this.timeout(300000);
|
||||||
const original_fork = config_api.getConfigItem('ytdl_default_downloader');
|
const original_fork = config_api.getConfigItem('ytdl_default_downloader');
|
||||||
const latest_version = await youtubedl_api.getLatestUpdateVersion(original_fork);
|
const latest_version = await youtubedl_api.getLatestUpdateVersion(original_fork);
|
||||||
const default_details_bin = fs.readJSONSync(CONSTS.DETAILS_BIN_PATH);
|
assert(latest_version > CONSTS.OUTDATED_YOUTUBEDL_VERSION);
|
||||||
assert(default_details_bin[original_fork]['version'] === CONSTS.OUTDATED_YOUTUBEDL_VERSION);
|
|
||||||
assert(latest_version > default_details_bin[original_fork]['version']);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Update youtube-dl', async function() {
|
it('Update youtube-dl', async function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user