mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 18:10:04 -04:00
Update create-matrix.test.js
This commit is contained in:
parent
46deb7f004
commit
7c8f5612ba
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ const path = require('path')
|
|||
const { execSync } = require('child_process')
|
||||
|
||||
beforeEach(() => {
|
||||
fs.copyFileSync('tests/__data__/input/channels.db', 'tests/__data__/temp/channels.db')
|
||||
fs.copyFileSync('tests/__data__/input/streams.db', 'tests/__data__/temp/streams.db')
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
|
@ -13,7 +13,7 @@ afterEach(() => {
|
|||
|
||||
it('can create valid matrix', () => {
|
||||
const result = execSync(
|
||||
'DB_FILEPATH=tests/__data__/temp/channels.db node scripts/commands/create-matrix.js',
|
||||
'DB_FILEPATH=tests/__data__/temp/streams.db node scripts/commands/create-matrix.js',
|
||||
{ encoding: 'utf8' }
|
||||
)
|
||||
expect(result).toBe('::set-output name=matrix::{"cluster_id":[1,3]}\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue