From 0ea859f8840d5325727ce1942ebe4e7432ce2d99 Mon Sep 17 00:00:00 2001 From: Mohan Kumar <121867882+ItshMoh@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:28:18 +0530 Subject: [PATCH 1/2] refactor: removed the redundant undefined (#1057) Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com> --- library/src/helpers/__tests__/schema.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/src/helpers/__tests__/schema.test.ts b/library/src/helpers/__tests__/schema.test.ts index aaa5b6f7a..d6c7acd24 100644 --- a/library/src/helpers/__tests__/schema.test.ts +++ b/library/src/helpers/__tests__/schema.test.ts @@ -905,12 +905,7 @@ describe('SchemaHelpers', () => { ).toMatchSnapshot(); expect( - SchemaHelpers.applicatorSchemaName( - 1, - FIRST_CASE, - OTHER_CASES, - undefined, - ), + SchemaHelpers.applicatorSchemaName(1, FIRST_CASE, OTHER_CASES), ).toMatchSnapshot(); }); From d7548c9abfc441935f2789ad9f9b3f5c99ac84e8 Mon Sep 17 00:00:00 2001 From: Mohan Kumar <121867882+ItshMoh@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:39:09 +0530 Subject: [PATCH 2/2] refactor: removed the redundant underfined. (#1056) * removed the redundant underfined. * fixed linting issue --------- Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com> --- library/src/helpers/__tests__/schema.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/src/helpers/__tests__/schema.test.ts b/library/src/helpers/__tests__/schema.test.ts index d6c7acd24..637674997 100644 --- a/library/src/helpers/__tests__/schema.test.ts +++ b/library/src/helpers/__tests__/schema.test.ts @@ -896,12 +896,7 @@ describe('SchemaHelpers', () => { test('should not render title because title is undefined', () => { expect( - SchemaHelpers.applicatorSchemaName( - 0, - FIRST_CASE, - OTHER_CASES, - undefined, - ), + SchemaHelpers.applicatorSchemaName(0, FIRST_CASE, OTHER_CASES), ).toMatchSnapshot(); expect(