mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 10:26:48 -05:00
use cross-env to send parameters in an easier manner
This commit is contained in:
@@ -1,15 +1,11 @@
|
||||
import { execSync } from 'child_process'
|
||||
import os from 'node:os'
|
||||
|
||||
type ExecError = {
|
||||
status: number
|
||||
stdout: string
|
||||
}
|
||||
|
||||
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" && SET "DATA_DIR=tests/__data__/input/data" &&'
|
||||
}
|
||||
const ENV_VAR = 'cross-env ROOT_DIR=tests/__data__/input DATA_DIR=tests/__data__/input/data'
|
||||
|
||||
describe('playlist:test', () => {
|
||||
it('shows an error if the playlist contains a broken link', () => {
|
||||
|
||||
Reference in New Issue
Block a user