We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e56c414 commit 581be77Copy full SHA for 581be77
specs/Modal.spec.js
@@ -82,6 +82,11 @@ describe('State', () => {
82
ReactDOM.unmountComponentAtNode(node);
83
});
84
85
+ it ('default parentSelector should be document.body.', () => {
86
+ const modal = renderModal({ isOpen: true });
87
+ expect(modal.props.parentSelector()).toEqual(document.body);
88
+ });
89
+
90
it('renders the modal content with a dialog aria role when provided ', () => {
91
const child = 'I am a child of Modal, and he has sent me here...';
92
const modal = renderModal({ isOpen: true, role: 'dialog' }, child);
0 commit comments