You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Vaguely working webpack test
This commit is contained in:
22
test/components/structures/MatrixChat-test.js
Normal file
22
test/components/structures/MatrixChat-test.js
Normal file
@ -0,0 +1,22 @@
|
||||
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'));
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user