it('scrolls to a position', () => {
scrollToPosition({ left: 10, top: 100 })
expect(getElementById).not.toHaveBeenCalled()
- expect(getElementById).not.toHaveBeenCalled()
+ expect(querySelector).not.toHaveBeenCalled()
expect(scrollTo).toHaveBeenCalledWith({
left: 10,
top: 100,
it('scrolls to a partial position top', () => {
scrollToPosition({ top: 10 })
expect(getElementById).not.toHaveBeenCalled()
- expect(getElementById).not.toHaveBeenCalled()
+ expect(querySelector).not.toHaveBeenCalled()
expect(scrollTo).toHaveBeenCalledWith({
top: 10,
behavior: undefined,
it('scrolls to a partial position left', () => {
scrollToPosition({ left: 10 })
expect(getElementById).not.toHaveBeenCalled()
- expect(getElementById).not.toHaveBeenCalled()
+ expect(querySelector).not.toHaveBeenCalled()
expect(scrollTo).toHaveBeenCalledWith({
left: 10,
behavior: undefined,