Skip to content

Commit 79b7870

Browse files
committed
test(plugin-form): type the closing-save pin's order helper by the batch operation type
Claude-Session: https://claude.ai/code/session_01WGufzhKEbEnW8pwZRgK2gJ
1 parent 23ace6e commit 79b7870

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/packages/plugin-form/src/RecordBodyTableEditor.recordEditBatch-35599.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import { describe, it, expect } from 'vitest';
1616
import { UNTOUCHED_NEW_ROW } from '@object-ui/fields';
17+
import type { BatchTransactionOperation } from '@object-ui/types';
1718
import { attributeRecordEditRefusal, buildRecordEditBatch } from './RecordBodyTableEditor';
1819

1920
const childSchema = {
@@ -175,7 +176,7 @@ describe('attributeRecordEditRefusal — a refused batch is placed where it belo
175176
describe('buildRecordEditBatch — a save that closes the record writes its lines first (ADR-0162 D4, objectstack#38997)', () => {
176177
// The object's declaration as its served definition carries it.
177178
const CLOSED_STATES = { status: ['paid', 'void'] };
178-
const order = (ops: ReadonlyArray<{ object: string; action: string; id?: unknown }>) =>
179+
const order = (ops: ReadonlyArray<BatchTransactionOperation>) =>
179180
ops.map((o) => [o.object, o.action, o.id ?? null]);
180181

181182
it('a draft that sets a closing state puts the record update after every line write, owned as the record', () => {

0 commit comments

Comments
 (0)