mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05:00
Rename to save-results.js
This commit is contained in:
@@ -7,12 +7,12 @@ beforeEach(() => {
|
|||||||
fs.mkdirSync('tests/__data__/output')
|
fs.mkdirSync('tests/__data__/output')
|
||||||
|
|
||||||
execSync(
|
execSync(
|
||||||
'DB_DIR=tests/__data__/output/database LOGS_DIR=tests/__data__/input/logs node scripts/commands/update-database.js',
|
'DB_DIR=tests/__data__/output/database LOGS_DIR=tests/__data__/input/logs node scripts/commands/save-results.js',
|
||||||
{ encoding: 'utf8' }
|
{ encoding: 'utf8' }
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can update database', () => {
|
it('can save results to database', () => {
|
||||||
const output = fs.readFileSync(path.resolve('tests/__data__/output/database/programs.db'), {
|
const output = fs.readFileSync(path.resolve('tests/__data__/output/database/programs.db'), {
|
||||||
encoding: 'utf8'
|
encoding: 'utf8'
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user