mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-13 19:46:16 +03:00
11 lines
543 B
TypeScript
11 lines
543 B
TypeScript
import { expect, test } from "bun:test"
|
|
import { promptMotionIssues } from "../e2e/utils/prompt-motion"
|
|
|
|
// Negative controls for the painted-prompt check in e2e/regression/mobile-timeline-scroll.spec.ts.
|
|
test.each([
|
|
["a prompt that disappears after it painted", [100, null, 100], [{ frame: 1, reason: "missing" }]],
|
|
["a prompt that moves back up", [100, 130, 120], [{ frame: 2, reason: "reversed" }]],
|
|
])("rejects %s", (_name, tops, issues) => {
|
|
expect(promptMotionIssues(tops.map((top, frame) => ({ frame, top })))).toEqual(issues)
|
|
})
|