mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 09:34:07 +03:00
Fix sticky sidebar test
This commit is contained in:
parent
857c91ac82
commit
a8f9fca8a5
|
@ -49,7 +49,7 @@ describe('Common components', () => {
|
|||
it('should stick if scrolled more than scrollYOffset', () => {
|
||||
spyOn(component, 'stick').and.callThrough();
|
||||
fixture.detectChanges();
|
||||
window.scrollY = 40;
|
||||
window.pageYOffset = 40;
|
||||
component.updatePosition();
|
||||
expect(component.stick).toHaveBeenCalled();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user