From b2c05f7e7cb337da482f755705545c234a5cf072 Mon Sep 17 00:00:00 2001 From: HermesYP Date: Sat, 12 Sep 2026 11:19:16 +0530 Subject: [PATCH] test: deliberate failure to verify required check gate --- tests/mpv-failure.test.ts | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/tests/mpv-failure.test.ts b/tests/mpv-failure.test.ts index 34cdc947f..1dd39409d 100644 --- a/tests/mpv-failure.test.ts +++ b/tests/mpv-failure.test.ts @@ -1,18 +1,8 @@ // @ts-expect-error Node test types are intentionally outside the browser-only tsconfig. -import assert from "node:assert/strict"; -// @ts-expect-error Node test types are intentionally outside the browser-only tsconfig. import test from "node:test"; -import { mpvFailureSnapshot } from "../src/lib/player/mpv-failure.ts"; -import { emptySnapshot } from "../src/lib/player/bridge.ts"; - -test("persistent mpv event failures become a visible player error", () => { - const snapshot = mpvFailureSnapshot( - { ...emptySnapshot, status: "playing", positionSec: 42 }, - "persistent-event-errors", - ); +// @ts-expect-error Node test types are intentionally outside the browser-only tsconfig. +import assert from "node:assert/strict"; - assert.equal(snapshot.status, "error"); - assert.equal(snapshot.errorCode, "unknown"); - assert.equal(snapshot.errorMessage, "The native player stopped responding."); - assert.equal(snapshot.positionSec, 42); -}); +test("deliberate failure to verify the required-check gate", () => { + assert.equal(1, 2, "this failure is intentional"); +}); \ No newline at end of file