mirror of
https://github.com/iptv-org/iptv
synced 2026-10-24 20:09:01 -04:00
Update playlist/update.js
This commit is contained in:
1 parent
887862bbdb
commit
632ec8f632
3 files changed
+17
-13
No files matched your search
@@ -1,13 +1,16 @@
|
||||
const { execSync } = require('child_process')
|
||||
const fs = require('fs-extra')
|
||||
const path = require('path')
|
||||
const glob = require('glob')
|
||||
const { execSync } = require('child_process')
|
||||
|
||||
beforeEach(() => {
|
||||
fs.emptyDirSync('tests/__data__/output')
|
||||
fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/output/streams.db')
|
||||
fs.copyFileSync(
|
||||
'tests/__data__/input/database/playlist_update.streams.db',
|
||||
'tests/__data__/output/streams.db'
|
||||
)
|
||||
|
||||
const stdout = execSync('DB_DIR=tests/__data__/output node scripts/commands/playlist/update.js', {
|
||||
const stdout = execSync('DB_DIR=tests/__data__/output npm run playlist:update', {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user