diff --git a/__tests__/index.test.tsx b/__tests__/index.test.tsx index 1f017ab1..a4e87102 100644 --- a/__tests__/index.test.tsx +++ b/__tests__/index.test.tsx @@ -339,6 +339,17 @@ describe('modal', () => { }); }); + describe('prop: blockScroll', () => { + it('should not block the scroll when modal is opened and blockScroll is false', () => { + render( + null}> +
modal content
+
+ ); + expect(document.documentElement.style.position).toBe(''); + }); + }); + describe('prop: onEscKeyDown', () => { it('should be called when esc key is pressed', async () => { const onEscKeyDown = jest.fn();