import React from 'react'; import { mount, shallow } from 'enzyme'; import { Initializer } from '../index'; describe('', () => { it('should not crash', () => { shallow(); }); it('should call the updatePlugin props on mount', () => { const props = { updatePlugin: jest.fn() }; mount(); expect(props.updatePlugin).toHaveBeenCalledWith('users-permissions', 'isReady', true); }); });