mirror of
https://github.com/iptv-org/iptv
synced 2025-12-21 04:47:32 -05:00
use cross-env to send parameters in an easier manner
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { execSync } from 'child_process'
|
||||
import os from 'os'
|
||||
|
||||
let ENV_VAR = 'DATA_DIR=tests/__data__/input/data STREAMS_DIR=tests/__data__/input/report_create'
|
||||
if (os.platform() === 'win32') {
|
||||
ENV_VAR =
|
||||
'SET "DATA_DIR=tests/__data__/input/data" && SET "STREAMS_DIR=tests/__data__/input/report_create" &&'
|
||||
}
|
||||
const ENV_VAR = 'cross-env DATA_DIR=tests/__data__/input/data STREAMS_DIR=tests/__data__/input/report_create'
|
||||
|
||||
describe('report:create', () => {
|
||||
it('can create report', () => {
|
||||
|
||||
Reference in New Issue
Block a user