mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Stop generate extra logs
This commit is contained in:
parent
c86d32c98d
commit
42bdeb5db8
2 changed files with 8 additions and 87 deletions
|
@ -8,7 +8,7 @@ beforeEach(() => {
|
|||
fs.copyFileSync('tests/__data__/input/database/programs.db', 'tests/__data__/output/programs.db')
|
||||
|
||||
const stdout = execSync(
|
||||
'DB_DIR=tests/__data__/output DATA_DIR=tests/__data__/input/data PUBLIC_DIR=tests/__data__/output LOGS_DIR=tests/__data__/output/logs npm run guides:update',
|
||||
'DB_DIR=tests/__data__/output DATA_DIR=tests/__data__/input/data PUBLIC_DIR=tests/__data__/output npm run guides:update',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
})
|
||||
|
@ -23,12 +23,6 @@ it('can generate /guides', () => {
|
|||
)
|
||||
})
|
||||
|
||||
it('can create guides.log', () => {
|
||||
expect(content('tests/__data__/output/logs/guides/update.log')).toBe(
|
||||
content('tests/__data__/expected/logs/guides/update.log')
|
||||
)
|
||||
})
|
||||
|
||||
function content(filepath) {
|
||||
const data = fs.readFileSync(path.resolve(filepath), {
|
||||
encoding: 'utf8'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue