mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-16 12:00:04 -04:00
Update update-playlists.test.js
This commit is contained in:
parent
8ab456c16e
commit
956e1f2565
1 changed files with 8 additions and 5 deletions
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue