From 6bfba02321fc68e64d47b7d95ae2753320f6dce3 Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Mon, 1 Jul 2024 19:49:52 +0100 Subject: [PATCH] Fixing unit test an builds --- .../lib/search/components/search-control.component.spec.ts | 4 ++-- .../src/lib/buttons-menu/buttons-menu.component.stories.ts | 0 lib/core/src/lib/buttons-menu/buttons-menu.module.ts | 0 .../src/lib/search-text/search-text-input.component.spec.ts | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 lib/core/src/lib/buttons-menu/buttons-menu.component.stories.ts delete mode 100644 lib/core/src/lib/buttons-menu/buttons-menu.module.ts diff --git a/lib/content-services/src/lib/search/components/search-control.component.spec.ts b/lib/content-services/src/lib/search/components/search-control.component.spec.ts index 494001595f..7b0fe22190 100644 --- a/lib/content-services/src/lib/search/components/search-control.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-control.component.spec.ts @@ -415,13 +415,13 @@ describe('SearchControlComponent', () => { it('should have positive transform translation', () => { userPreferencesService.setWithoutStore('textOrientation', 'ltr'); fixture.detectChanges(); - expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(82%)'); + expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(95%)'); }); it('should have negative transform translation ', () => { userPreferencesService.setWithoutStore('textOrientation', 'rtl'); fixture.detectChanges(); - expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-82%)'); + expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-95%)'); }); }); }); diff --git a/lib/core/src/lib/buttons-menu/buttons-menu.component.stories.ts b/lib/core/src/lib/buttons-menu/buttons-menu.component.stories.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lib/core/src/lib/buttons-menu/buttons-menu.module.ts b/lib/core/src/lib/buttons-menu/buttons-menu.module.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lib/core/src/lib/search-text/search-text-input.component.spec.ts b/lib/core/src/lib/search-text/search-text-input.component.spec.ts index a6ca950c46..bf8732d4e9 100644 --- a/lib/core/src/lib/search-text/search-text-input.component.spec.ts +++ b/lib/core/src/lib/search-text/search-text-input.component.spec.ts @@ -206,7 +206,7 @@ describe('SearchTextInputComponent', () => { fixture.detectChanges(); tick(100); - expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(82%)' }); + expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(95%)' }); discardPeriodicTasks(); })); @@ -237,7 +237,7 @@ describe('SearchTextInputComponent', () => { fixture.detectChanges(); tick(100); - expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(-82%)' }); + expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(-95%)' }); discardPeriodicTasks(); }));