Skip to content

Commit 069c019

Browse files
committed
test(app-shell): type the list-view inspector test's locale
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTqu1ZbUqjnAJufZ8m
1 parent 42add54 commit 069c019

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/PageBlockInspector.listViewRowCap-26703.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { render, screen, fireEvent, cleanup } from '@testing-library/react';
1717
import { PageSchema } from '@objectstack/spec/ui';
1818
import { PageBlockInspector } from './PageBlockInspector';
1919
import type { MetadataInspectorProps } from '../inspector-registry';
20+
import type { SupportedLocale } from '../i18n';
2021

2122
vi.mock('../previews/useObjectFields', () => ({
2223
useObjectFields: () => ({ fields: [], loading: false, error: null }),
@@ -41,7 +42,7 @@ function pageDraft(block: Record<string, unknown>): Record<string, unknown> {
4142
}) as unknown as Record<string, unknown>;
4243
}
4344

44-
function renderInspector(draft: Record<string, unknown>, locale = 'en-US'): Mock<MetadataInspectorProps['onPatch']> {
45+
function renderInspector(draft: Record<string, unknown>, locale: SupportedLocale = 'en-US'): Mock<MetadataInspectorProps['onPatch']> {
4546
const onPatch: Mock<MetadataInspectorProps['onPatch']> = vi.fn();
4647
render(
4748
<PageBlockInspector

0 commit comments

Comments
 (0)