synapse-admin/tests/features/user-admin/List.test.js
Manuel Stahl b44238422a Add component user-admin/List
Change-Id: I9a02165af1ad83c9ec3727d8e40d64be0a2540d0
2019-08-19 11:12:27 +02:00

20 lines
446 B
JavaScript

import React from 'react';
import { shallow } from 'enzyme';
import { List } from '../../../src/features/user-admin/List';
describe('user-admin/List', () => {
it('renders node with correct class name', () => {
const props = {
userAdmin: {},
actions: {},
};
const renderedComponent = shallow(
<List {...props} />
);
expect(
renderedComponent.find('.user-admin-list').length
).toBe(1);
});
});