mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(react): eliminate use of deprecated findDOMNode
, resolves #20972
This commit is contained in:
@ -49,6 +49,21 @@ describe('createComponent - ref', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('createComponent - strict mode', () => {
|
||||
beforeEach(() => (console.error = (...data: any[]) => {
|
||||
throw new Error(...data);
|
||||
}));
|
||||
|
||||
test('should work without errors in strict mode', () => {
|
||||
const renderResult = render(
|
||||
<React.StrictMode>
|
||||
<IonButton>Strict Mode Rocks</IonButton>
|
||||
</React.StrictMode>
|
||||
);
|
||||
expect(renderResult.getByText(/Rocks/)).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
describe('when working with css classes', () => {
|
||||
const myClass = 'my-class'
|
||||
const myClass2 = 'my-class2'
|
||||
|
Reference in New Issue
Block a user