synapse-admin/tests/features/user-admin/ListItem.test.js
Manuel Stahl 8b339db56e Fetch display name and avatar of each user
Change-Id: I330f2bc6c0c1fe5db1df99448eb1f06d092137d4
2019-08-19 14:48:05 +02:00

20 lines
467 B
JavaScript

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);
});
});