Add component room-admin/AddRoomDialog
Change-Id: Ia6546dff76388b4542f8a2fe22181556297cc3b6
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
import { AddRoomDialog } from '../../../src/features/room-admin/AddRoomDialog';
|
||||
|
||||
describe('room-admin/AddRoomDialog', () => {
|
||||
it('renders node with correct class name', () => {
|
||||
const props = {
|
||||
roomAdmin: {},
|
||||
actions: {},
|
||||
};
|
||||
const renderedComponent = shallow(
|
||||
<AddRoomDialog {...props} />
|
||||
);
|
||||
|
||||
expect(
|
||||
renderedComponent.find('.room-admin-add-room-dialog').length
|
||||
).toBe(1);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user