mirror of
https://github.com/iptv-org/iptv
synced 2026-10-30 06:44:16 -04:00
Update tests
This commit is contained in:
1 parent
d7f1cdf2c1
commit
9902121ac0
10 files changed
+49
-10
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { describe, beforeEach, it, expect } from 'vitest'
|
||||
import child_process, { execSync } from 'node:child_process'
|
||||
import path from 'node:path'
|
||||
import { pathToFileURL } from 'node:url'
|
||||
@@ -60,8 +61,7 @@ describe('playlist:test', () => {
|
||||
|
||||
it('fails when the network is unavailable', () => {
|
||||
const preload = path.resolve('tests/__data__/input/offline_dns.cjs').replaceAll('\\', '/')
|
||||
const cmd =
|
||||
`cross-env NODE_OPTIONS="--require=${preload}" npm run playlist:test -- streams/af.m3u`
|
||||
const cmd = `cross-env NODE_OPTIONS="--require=${preload}" npm run playlist:test -- streams/af.m3u`
|
||||
|
||||
try {
|
||||
execSync(cmd, { encoding: 'utf8' })
|
||||
|
||||
Reference in new issue
Block a user