test(web): align formatter stub with lint rules

This commit is contained in:
Codex
2026-10-17 20:17:24 +03:00
parent 97609ec6bd
commit 04a7b4104f
@@ -29,7 +29,7 @@ describe('admin actions for active and deleted accounts', () => {
}); });
it('offers restoration with a valid date and hides edits for a deleted account', () => { it('offers restoration with a valid date and hides edits for a deleted account', () => {
const format = vi.fn((key: string, _options?: unknown) => key); const format = vi.fn((key: string, _?: unknown) => key);
const user = { id: 'other', deletedAt: '2026-10-17T12:00:00Z', status: UserStatus.Deleted } as UserAdminResponseDto; const user = { id: 'other', deletedAt: '2026-10-17T12:00:00Z', status: UserStatus.Deleted } as UserAdminResponseDto;
const actions = getUserAdminActions(format as MessageFormatter, user); const actions = getUserAdminActions(format as MessageFormatter, user);
expect((actions.Restore.$if as () => boolean)()).toBe(true); expect((actions.Restore.$if as () => boolean)()).toBe(true);