From 501c98f36fbf9860cad364ea69973fef79eed165 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Mon, 2 Jun 2025 15:37:36 +0200 Subject: [PATCH 1/2] Revert --- __tests__/gen/users-patch_user_crm.test.ts | 8 ++------ __tests__/gen/users-put_public_form.test.ts | 6 +----- __tests__/gen/users-put_public_subscribe.test.ts | 6 +----- __tests__/gen/users-put_user_form_self.test.ts | 6 +----- src/expectedToFail.ts | 4 ---- 5 files changed, 5 insertions(+), 25 deletions(-) diff --git a/__tests__/gen/users-patch_user_crm.test.ts b/__tests__/gen/users-patch_user_crm.test.ts index 1ddcfab8..daa1313b 100644 --- a/__tests__/gen/users-patch_user_crm.test.ts +++ b/__tests__/gen/users-patch_user_crm.test.ts @@ -4,8 +4,8 @@ async function example() { const response = await users.patch_user_crm({ body: { cad_industry: 'The industry of the user.', + cad_user_count: 'The user count of the user.', cad_user_type: 'The user type.', - number_of_cad_users: 'The user count of the user.', }, }); if ('error_code' in response) throw response; @@ -15,10 +15,6 @@ async function example() { describe('Testing users.patch_user_crm', () => { it('should be truthy or throw', async () => { - try { - await example(); - } catch (err) { - expect(err).toBeTruthy(); // eslint-disable-line jest/no-conditional-expect - } + expect(await example()).toBeTruthy(); }); }); diff --git a/__tests__/gen/users-put_public_form.test.ts b/__tests__/gen/users-put_public_form.test.ts index 1f57c02e..b1144d1b 100644 --- a/__tests__/gen/users-put_public_form.test.ts +++ b/__tests__/gen/users-put_public_form.test.ts @@ -20,10 +20,6 @@ async function example() { describe('Testing users.put_public_form', () => { it('should be truthy or throw', async () => { - try { - await example(); - } catch (err) { - expect(err).toBeTruthy(); // eslint-disable-line jest/no-conditional-expect - } + expect(await example()).toBeTruthy(); }); }); diff --git a/__tests__/gen/users-put_public_subscribe.test.ts b/__tests__/gen/users-put_public_subscribe.test.ts index 4a273cca..c6eba65f 100644 --- a/__tests__/gen/users-put_public_subscribe.test.ts +++ b/__tests__/gen/users-put_public_subscribe.test.ts @@ -11,10 +11,6 @@ async function example() { describe('Testing users.put_public_subscribe', () => { it('should be truthy or throw', async () => { - try { - await example(); - } catch (err) { - expect(err).toBeTruthy(); // eslint-disable-line jest/no-conditional-expect - } + expect(await example()).toBeTruthy(); }); }); diff --git a/__tests__/gen/users-put_user_form_self.test.ts b/__tests__/gen/users-put_user_form_self.test.ts index e39dcac1..c4b5531f 100644 --- a/__tests__/gen/users-put_user_form_self.test.ts +++ b/__tests__/gen/users-put_user_form_self.test.ts @@ -20,10 +20,6 @@ async function example() { describe('Testing users.put_user_form_self', () => { it('should be truthy or throw', async () => { - try { - await example(); - } catch (err) { - expect(err).toBeTruthy(); // eslint-disable-line jest/no-conditional-expect - } + expect(await example()).toBeTruthy(); }); }); diff --git a/src/expectedToFail.ts b/src/expectedToFail.ts index b0f41bd4..020ca525 100644 --- a/src/expectedToFail.ts +++ b/src/expectedToFail.ts @@ -76,10 +76,6 @@ export const testsExpectedToThrow = [ 'users.get_user_front_hash_self', 'users.get_user', 'users.update_user_privacy_settings', - 'users.patch_user_crm', - 'users.put_public_form', - 'users.put_user_form_self', - 'users.put_public_subscribe', 'api-tokens.delete_api_token_for_user', 'api-tokens.get_api_token_for_user', 'service-accounts.delete_service_account_for_org', From e591d269d5c02e6682be000577152570b92342a0 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Mon, 2 Jun 2025 15:40:29 +0200 Subject: [PATCH 2/2] update --- __tests__/gen/users-patch_user_crm.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/gen/users-patch_user_crm.test.ts b/__tests__/gen/users-patch_user_crm.test.ts index daa1313b..f1456bdf 100644 --- a/__tests__/gen/users-patch_user_crm.test.ts +++ b/__tests__/gen/users-patch_user_crm.test.ts @@ -4,8 +4,8 @@ async function example() { const response = await users.patch_user_crm({ body: { cad_industry: 'The industry of the user.', - cad_user_count: 'The user count of the user.', cad_user_type: 'The user type.', + number_of_cad_users: 'The user count of the user.', }, }); if ('error_code' in response) throw response;