mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Set React to Strict Mode
Set React to Strict Mode. See: https://reactjs.org/docs/strict-mode.html
This commit is contained in:
parent
d0ac028265
commit
01f210e392
@ -7,6 +7,8 @@ import { BrandName } from './variables';
|
||||
document.title = `Ansible ${BrandName}`;
|
||||
|
||||
ReactDOM.render(
|
||||
<App />,
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('app') || document.createElement('div')
|
||||
);
|
||||
|
||||
@ -12,6 +12,11 @@ require('./index.jsx');
|
||||
|
||||
describe('index.jsx', () => {
|
||||
it('renders ok', () => {
|
||||
expect(ReactDOM.render).toHaveBeenCalledWith(<App />, div);
|
||||
expect(ReactDOM.render).toHaveBeenCalledWith(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
div
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user