Update update-playlists.test.js
This commit is contained in:
parent
8ab456c16e
commit
956e1f2565
|
@ -4,12 +4,15 @@ const glob = require('glob')
|
||||||
const { execSync } = require('child_process')
|
const { execSync } = require('child_process')
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fs.emptyDirSync('tests/__data__/temp')
|
fs.emptyDirSync('tests/__data__/output')
|
||||||
fs.copyFileSync('tests/__data__/input/database/streams.db', 'tests/__data__/temp/streams.db')
|
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', {
|
const stdout = execSync(
|
||||||
|
'DB_DIR=tests/__data__/output node scripts/commands/update-playlists.js',
|
||||||
|
{
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
})
|
}
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can update playlists', () => {
|
it('can update playlists', () => {
|
||||||
|
|
Loading…
Reference in New Issue