Skip to content

Commit d2f3695

Browse files
committed
test(audit): the config_changes pin lists export beside import
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxfxbKV82MKKQzizpP
1 parent b694799 commit d2f3695

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/plugins/plugin-audit/src/sys-audit-log-pointer-pair.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ describe('audit record pages and lists — the type half never draws as text (#2
194194

195195
it('control: config_changes is still declared with its filter, and the pair stays declared', () => {
196196
const view = SysAuditLog.listViews?.config_changes as { filter?: unknown; columns?: unknown } | undefined;
197-
expect(view?.filter).toEqual([{ field: 'action', operator: 'in', value: ['config_change', 'import'] }]);
197+
// [#30955] `export` joined `import` here: both are run-level rows with no `record_id`.
198+
expect(view?.filter).toEqual([{ field: 'action', operator: 'in', value: ['config_change', 'import', 'export'] }]);
198199
expect(view?.columns).toEqual(['created_at', 'action', 'user_id']);
199200
expect((SysAuditLog.fields as Record<string, Record<string, unknown>>).record_id.referenceVia).toBe('object_name');
200201
});

0 commit comments

Comments
 (0)