mirror of
https://github.com/element-hq/element-web
synced 2024-11-22 09:15:41 +03:00
test component index and stub component
This commit is contained in:
parent
fcc82fbd27
commit
e099aa9ce0
2 changed files with 29 additions and 0 deletions
11
test/components/stub-component.js
Normal file
11
test/components/stub-component.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* A dummy React component which we use for stubbing out app-level components
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var React = require('react');
|
||||
|
||||
module.exports = React.createClass({
|
||||
render: function() {
|
||||
return <div />;
|
||||
},
|
||||
});
|
18
test/test-component-index.js
Normal file
18
test/test-component-index.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* test-component-index.js
|
||||
*
|
||||
* Stub out a bunch of the components which we expect the application to
|
||||
* provide
|
||||
*/
|
||||
var components = require('../src/component-index.js').components;
|
||||
var stub = require('./components/stub-component.js');
|
||||
|
||||
components['structures.LeftPanel'] = stub;
|
||||
components['structures.RightPanel'] = stub;
|
||||
components['structures.RoomDirectory'] = stub;
|
||||
components['views.globals.MatrixToolbar'] = stub;
|
||||
components['views.globals.GuestWarningBar'] = stub;
|
||||
components['views.globals.NewVersionBar'] = stub;
|
||||
components['views.elements.Spinner'] = stub;
|
||||
|
||||
module.exports.components = components;
|
Loading…
Reference in a new issue