synapse-admin/tests/features/room-admin/List.test.js
Manuel Stahl 3d9ec623e4 Add feature room-admin
Change-Id: I3bbe7bd7299b56e84ab918d2a8bb22facafecbf1
2019-08-19 17:14:28 +02:00

20 lines
446 B
JavaScript

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