mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-05 04:53:26 +03:00
23 lines
637 B
JavaScript
23 lines
637 B
JavaScript
|
var React = require('react');
|
||
|
var TestUtils = require('react-addons-test-utils');
|
||
|
var expect = require('expect');
|
||
|
|
||
|
var sdk = require('matrix-react-sdk');
|
||
|
var MatrixChat;
|
||
|
|
||
|
describe('MatrixChat', function () {
|
||
|
before(function() {
|
||
|
MatrixChat = sdk.getComponent('structures.MatrixChat');
|
||
|
});
|
||
|
|
||
|
it('gives a login panel by default', function () {
|
||
|
var res = TestUtils.renderIntoDocument(
|
||
|
<MatrixChat config={{}}/>
|
||
|
);
|
||
|
|
||
|
// we expect a single <Login> component
|
||
|
TestUtils.findRenderedComponentWithType(
|
||
|
res, sdk.getComponent('structures.login.Login'));
|
||
|
});
|
||
|
});
|