Skip to content

Commit bb8c665

Browse files
committed
test(spec): drop the action:button locale-map case — the row's template slot refuses a locale map for its own reason
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziDSrjZDDBZDrXMGAQ
1 parent 58ffb01 commit bb8c665

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎packages/spec/src/ui/action-confirm-params-guard.test.ts‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -346,17 +346,6 @@ describe('`confirmText` + non-empty ARRAY `params` is refused on the `action:but
346346
expect(issues[0]?.message).toBe(inlineIssue?.message);
347347
});
348348

349-
it('refuses the localized-map form of `confirmText` too', () => {
350-
const result = ActionButtonPropsSchema.safeParse({
351-
...buttonReject,
352-
confirmText: { en: 'Reject this request?', 'zh-CN': '拒绝该请求?' },
353-
});
354-
355-
expect(result.success).toBe(false);
356-
expect(result.success ? undefined : result.error.issues.map((i) => i.path.join('.')))
357-
.toContain('confirmText');
358-
});
359-
360349
it('accepts `description` beside an array `params` and no `confirmText` — the remedy', () => {
361350
const result = ActionButtonPropsSchema.safeParse({
362351
...buttonReject,

0 commit comments

Comments
 (0)