//
// SPDX-License-Identifier: AGPL-3.0
-import * as React from 'react';
-import * as Adapter from 'enzyme-adapter-react-16';
+import React from 'react';
+import Adapter from 'enzyme-adapter-react-16';
import {configure, shallow } from 'enzyme';
import { AccountMenuComponent } from './account-menu';
it('should dispatch a logout action when clicked', () => {
wrapper.find('[data-cy="logout-menuitem"]').simulate('click');
expect(props.dispatch).toHaveBeenCalledWith({
- payload: {deleteLinkData: true},
+ payload: {deleteLinkData: true, preservePath: false},
type: 'LOGOUT',
});
});