MCPcopy Create free account
hub / github.com/dailydotdev/apps / scrollRestoration.spec.ts

File scrollRestoration.spec.ts

packages/shared/src/lib/scrollRestoration.spec.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { getScrollPosition, saveScrollPosition } from './scrollRestoration';
2
3it('evicts old history entries while retaining recent positions', () => {
4 for (let index = 0; index < 1000; index += 1) {

Callers

nothing calls this directly

Calls 2

saveScrollPositionFunction · 0.90
getScrollPositionFunction · 0.90

Tested by

no test coverage detected