Fetch display name and avatar of each user
Change-Id: I330f2bc6c0c1fe5db1df99448eb1f06d092137d4
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { ListItem } from '../../../src/features/user-admin/ListItem';
|
||||
|
||||
describe('user-admin/ListItem', () => {
|
||||
it('renders node with correct class name', () => {
|
||||
const props = {
|
||||
userAdmin: {},
|
||||
actions: {},
|
||||
};
|
||||
const renderedComponent = shallow(
|
||||
<ListItem {...props} />
|
||||
);
|
||||
|
||||
expect(
|
||||
renderedComponent.find('.user-admin-list-item').length
|
||||
).toBe(1);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user