diff --git a/test/ModalSpec.js b/test/ModalSpec.js index 09485b9..96e0151 100644 --- a/test/ModalSpec.js +++ b/test/ModalSpec.js @@ -8,6 +8,7 @@ import simulant from 'simulant'; import { render } from '@testing-library/react'; import { mount } from 'enzyme'; +import { shouldWarn } from './helpers'; import Modal from '../src/Modal'; import { OPEN_DATA_ATTRIBUTE } from '../src/ModalManager'; @@ -239,6 +240,8 @@ describe('', () => { }); it('should pass transition callbacks to Transition', (done) => { + // Expected since ref is only a prop in react 19+. + shouldWarn('Warning: div: `ref` is not a prop'); let count = 0; let increment = () => count++;