2019-02-07 15:23:30 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { shallow } from 'enzyme';
|
2019-02-07 16:11:43 +03:00
|
|
|
import { List } from '../../../src/features/user-admin/List';
|
2019-02-07 15:23:30 +03:00
|
|
|
|
2019-02-07 16:11:43 +03:00
|
|
|
describe('user-admin/List', () => {
|
2019-02-07 15:23:30 +03:00
|
|
|
it('renders node with correct class name', () => {
|
|
|
|
const props = {
|
|
|
|
userAdmin: {},
|
|
|
|
actions: {},
|
|
|
|
};
|
|
|
|
const renderedComponent = shallow(
|
2019-02-07 16:11:43 +03:00
|
|
|
<List {...props} />
|
2019-02-07 15:23:30 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
expect(
|
2019-02-07 16:11:43 +03:00
|
|
|
renderedComponent.find('.user-admin-list').length
|
2019-02-07 15:23:30 +03:00
|
|
|
).toBe(1);
|
|
|
|
});
|
|
|
|
});
|