- 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
14 lines
339 B
TypeScript
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 }
|
|
}
|