mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #7596 from nixocio/ui_set_strict_mode
Set React to Strict Mode Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
6b867e7d97
@ -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