Fixing unit test an builds

This commit is contained in:
VitoAlbano
2024-07-01 19:49:52 +01:00
parent 7c3c8e1fa2
commit 6bfba02321
4 changed files with 4 additions and 4 deletions

View File

@@ -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%)');
});
});
});

View File

@@ -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();
}));