Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Apr 26, 2024
1 parent 98b76af commit ef89844
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ModalSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -239,6 +240,8 @@ describe('<Modal>', () => {
});

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++;

Expand Down

0 comments on commit ef89844

Please sign in to comment.