tua-body-scroll-lock
Version:
🔐Body scroll locking that just works with everything
18 lines (13 loc) • 410 B
text/typescript
/**
* @jest-environment jsdom
*/
import { getLockState } from './getLockState'
describe('getLockState', () => {
it('should generate window.__BSL_LOCK_STATE__', () => {
expect(window.__BSL_LOCK_STATE__).toBeUndefined()
getLockState()
expect(window.__BSL_LOCK_STATE__).toBeUndefined()
getLockState({ useGlobalLockState: true })
expect(window.__BSL_LOCK_STATE__).toBeDefined()
})
})