mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixing unit test an builds
This commit is contained in:
@@ -415,13 +415,13 @@ describe('SearchControlComponent', () => {
|
|||||||
it('should have positive transform translation', () => {
|
it('should have positive transform translation', () => {
|
||||||
userPreferencesService.setWithoutStore('textOrientation', 'ltr');
|
userPreferencesService.setWithoutStore('textOrientation', 'ltr');
|
||||||
fixture.detectChanges();
|
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 ', () => {
|
it('should have negative transform translation ', () => {
|
||||||
userPreferencesService.setWithoutStore('textOrientation', 'rtl');
|
userPreferencesService.setWithoutStore('textOrientation', 'rtl');
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-82%)');
|
expect(component.searchTextInput.subscriptAnimationState.params.transform).toBe('translateX(-95%)');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -206,7 +206,7 @@ describe('SearchTextInputComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
tick(100);
|
tick(100);
|
||||||
|
|
||||||
expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(82%)' });
|
expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(95%)' });
|
||||||
discardPeriodicTasks();
|
discardPeriodicTasks();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ describe('SearchTextInputComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
tick(100);
|
tick(100);
|
||||||
|
|
||||||
expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(-82%)' });
|
expect(component.subscriptAnimationState.params).toEqual({ transform: 'translateX(-95%)' });
|
||||||
discardPeriodicTasks();
|
discardPeriodicTasks();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user