diff --git a/tests/commands/playlist/format.test.ts b/tests/commands/playlist/format.test.ts index f6c6312528..e71d6f52a1 100644 --- a/tests/commands/playlist/format.test.ts +++ b/tests/commands/playlist/format.test.ts @@ -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(() => { diff --git a/tests/commands/playlist/test.test.ts b/tests/commands/playlist/test.test.ts index 813ed401d4..39907eb80b 100644 --- a/tests/commands/playlist/test.test.ts +++ b/tests/commands/playlist/test.test.ts @@ -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', () => { diff --git a/tests/commands/report/create.test.ts b/tests/commands/report/create.test.ts index 3f6bcbb9ff..954063dbb9 100644 --- a/tests/commands/report/create.test.ts +++ b/tests/commands/report/create.test.ts @@ -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) })