mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-15 19:40:03 -04:00
Update tests/commands
This commit is contained in:
parent
0b2ab738e8
commit
2b84b126c9
5 changed files with 61 additions and 17 deletions
|
@ -4,15 +4,15 @@ const { execSync } = require('child_process')
|
|||
|
||||
beforeEach(() => {
|
||||
fs.emptyDirSync('tests/__data__/output')
|
||||
|
||||
fs.mkdirSync('tests/__data__/output/database')
|
||||
fs.copyFileSync(
|
||||
'tests/__data__/input/database/db_matrix.streams.db',
|
||||
'tests/__data__/output/streams.db'
|
||||
'tests/__data__/output/database/streams.db'
|
||||
)
|
||||
})
|
||||
|
||||
it('can create valid matrix', () => {
|
||||
const result = execSync('DB_DIR=tests/__data__/output npm run db:matrix', {
|
||||
const result = execSync('DB_DIR=tests/__data__/output/database npm run db:matrix', {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
expect(result).toBe(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue