Fix sticky sidebar test

This commit is contained in:
Roman Hotsiy 2016-01-17 20:55:49 +02:00
parent 857c91ac82
commit a8f9fca8a5

View File

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