mirror of
https://github.com/iptv-org/iptv
synced 2026-10-23 19:46:40 -04:00
Update update-playlists.test.js
This commit is contained in:
1 parent
58688e19a0
commit
761e67e3f8
1 file changed
+8
-5
@@ -4,12 +4,15 @@ const glob = require('glob')
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
beforeEach(() => {
|
||||
fs.emptyDirSync('tests/__data__/temp')
|
||||
fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/temp/streams.db')
|
||||
fs.emptyDirSync('tests/__data__/output')
|
||||
fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/output/streams.db')
|
||||
|
||||
const stdout = execSync('DB_DIR=tests/__data__/temp node scripts/commands/update-playlists.js', {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
const stdout = execSync(
|
||||
'DB_DIR=tests/__data__/output node scripts/commands/update-playlists.js',
|
||||
{
|
||||
encoding: 'utf8'
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
it('can update playlists', () => {
|
||||
|
||||
Reference in new issue
Block a user