@carbon/ibm-security
Version:
Carbon for Cloud & Cognitive IBM Security UI components
17 lines (16 loc) • 611 B
JavaScript
/**
* @file Filter panel test utilities.
* @copyright IBM Security 2021
*/
import { render } from '@testing-library/react';
export default function expectWarning(ui) {
var _jest = jest,
fn = _jest.fn,
spyOn = _jest.spyOn;
test('calls an unactionable prop deprecation warning', function () {
var warn = spyOn(console, 'warn').mockImplementation(fn());
render(ui);
expect(warn).toBeCalledWith('Warning: \nThe prop `wrapperClassName` for Checkbox will be deprecated in V11 in favor of `className`. `className` will then be placed on the outer wrapper.');
warn.mockRestore();
});
}