From 51283c736e57ea88e494e55684a9997393ffeb6f Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Wed, 23 Apr 2025 21:25:18 +0300 Subject: [PATCH] Update test.test.ts --- tests/commands/playlist/test.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/commands/playlist/test.test.ts b/tests/commands/playlist/test.test.ts index 515dbf824..813ed401d 100644 --- a/tests/commands/playlist/test.test.ts +++ b/tests/commands/playlist/test.test.ts @@ -1,5 +1,4 @@ import { execSync } from 'child_process' -import path from 'node:path' import os from 'node:os' type ExecError = { @@ -19,12 +18,8 @@ describe('playlist:test', () => { execSync(cmd, { encoding: 'utf8' }) } catch (error) { if (process.env.DEBUG === 'true') console.log(cmd, error) - expect((error as ExecError).stdout).toContain(slash('playlist_test/ag.m3u')) + expect((error as ExecError).stdout).toContain('playlist_test/ag.m3u') expect((error as ExecError).stdout).toContain('2 problems (1 errors, 1 warnings)') } }) }) - -function slash(filepath: string) { - return filepath.split(path.sep).join(path.posix.sep) -}