openpencil/tests/helpers/undo.ts
Danila Poyarkov 432f945da6 chore(tests): narrow no-empty-function exceptions
- Replace simple no-op test callbacks with explicit undefined returns
- Remove no-empty-function exceptions for autosave, stroke picker, font settings, pen, tauri, AI adapter, and undo helper tests
- Validate check plus affected engine and E2E tests
2026-05-06 12:32:54 +03:00

14 lines
339 B
TypeScript

import { UndoManager } from '@open-pencil/core'
export function noop() {
return undefined
}
export function createUndoManager(options?: ConstructorParameters<typeof UndoManager>[0]) {
return new UndoManager(options)
}
export function undoEntry(label: string, forward = noop, inverse = noop) {
return { label, forward, inverse }
}