mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 17:44: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', () => {
|
it('should stick if scrolled more than scrollYOffset', () => {
|
||||||
spyOn(component, 'stick').and.callThrough();
|
spyOn(component, 'stick').and.callThrough();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
window.scrollY = 40;
|
window.pageYOffset = 40;
|
||||||
component.updatePosition();
|
component.updatePosition();
|
||||||
expect(component.stick).toHaveBeenCalled();
|
expect(component.stick).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user