Skip to content

Commit

Permalink
Fixing unit test an builds
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoAlbano committed Jul 1, 2024
1 parent a9abfa9 commit 5f078a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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%)');
});
});
});
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}));

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

Expand Down

0 comments on commit 5f078a2

Please sign in to comment.