Subscription videos now skip the collect info step during download process, reducing calls to video host

This commit is contained in:
Isaac Abadi
2022-06-23 18:37:54 -04:00
parent 64b4b5a2b4
commit a0c36bf1a1
6 changed files with 43 additions and 6 deletions

View File

@@ -618,4 +618,12 @@ describe('Archive', async function() {
assert(!new_archive.includes('testing2'));
assert(new_blacklist.includes('testing2'));
});
});
describe('Utils', async function() {
it('Strip properties', async function() {
const test_obj = {test1: 'test1', test2: 'test2', test3: 'test3'};
const stripped_obj = utils.stripPropertiesFromObject(test_obj, ['test1', 'test3']);
assert(!stripped_obj['test1'] && stripped_obj['test2'] && !stripped_obj['test3'])
});
});