mirror of https://github.com/iptv-org/iptv
Update tests
This commit is contained in:
parent
a47dbd8999
commit
925fdfbff0
|
@ -4,9 +4,10 @@ import * as fs from 'fs-extra'
|
|||
import { glob } from 'glob'
|
||||
import os from 'os'
|
||||
|
||||
let ENV_VAR = 'STREAMS_DIR=tests/__data__/output/streams'
|
||||
let ENV_VAR = 'STREAMS_DIR=tests/__data__/output/streams DATA_DIR=tests/__data__/input/data'
|
||||
if (os.platform() === 'win32') {
|
||||
ENV_VAR = 'SET "STREAMS_DIR=tests/__data__/output/streams" &&'
|
||||
ENV_VAR =
|
||||
'SET "STREAMS_DIR=tests/__data__/output/streams" && SET "DATA_DIR=tests/__data__/input/data" &&'
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
|
@ -6,9 +6,9 @@ type ExecError = {
|
|||
stdout: string
|
||||
}
|
||||
|
||||
let ENV_VAR = 'ROOT_DIR=tests/__data__/input'
|
||||
let ENV_VAR = 'ROOT_DIR=tests/__data__/input DATA_DIR=tests/__data__/input/data'
|
||||
if (os.platform() === 'win32') {
|
||||
ENV_VAR = 'SET "ROOT_DIR=tests/__data__/input" &&'
|
||||
ENV_VAR = 'SET "ROOT_DIR=tests/__data__/input" && SET "DATA_DIR=tests/__data__/input/data" &&'
|
||||
}
|
||||
|
||||
describe('playlist:test', () => {
|
||||
|
|
|
@ -24,7 +24,8 @@ describe('report:create', () => {
|
|||
│ 3 │ 14178 │ 'streams:add' │ 'TV3.my' │ 'https://live-streams-ssai-01.tonton.com.my/live/2dd2b7cd-1b34-4871-b669-57b5c9beca23/live.isml/.m3u8...' │ 'blocked' │
|
||||
│ 4 │ 16120 │ 'streams:remove' │ undefined │ 'http://190.61.102.67:2000/play/a038/index.m3u8' │ 'wrong_link' │
|
||||
│ 5 │ 19956 │ 'channel search' │ 'CNBCe.tr' │ undefined │ 'invalid_id' │
|
||||
│ 6 │ 20956 │ 'channel search' │ 'IONTV.us' │ undefined │ 'fulfilled' │
|
||||
│ 6 │ 19957 │ 'channel search' │ '13thStreet.au' │ undefined │ 'closed' │
|
||||
│ 7 │ 20956 │ 'channel search' │ 'IONTV.us' │ undefined │ 'fulfilled' │
|
||||
└─────────┴─────────────┴──────────────────┴─────────────────────────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────────┘`)
|
||||
).toBe(true)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue