You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Make it possible to only run one test file each time
This commit is contained in:
27
test/skinned-sdk.js
Normal file
27
test/skinned-sdk.js
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* skinned-sdk.js
|
||||
*
|
||||
* Skins the react-sdk with a few stub components which we expect the
|
||||
* application to provide
|
||||
*/
|
||||
|
||||
var sdk = require("../src/index");
|
||||
|
||||
var skin = require('../src/component-index.js');
|
||||
var stubComponent = require('./components/stub-component.js');
|
||||
|
||||
var components = skin.components;
|
||||
components['structures.LeftPanel'] = stubComponent();
|
||||
components['structures.RightPanel'] = stubComponent();
|
||||
components['structures.RoomDirectory'] = stubComponent();
|
||||
components['views.globals.MatrixToolbar'] = stubComponent();
|
||||
components['views.globals.GuestWarningBar'] = stubComponent();
|
||||
components['views.globals.NewVersionBar'] = stubComponent();
|
||||
components['views.elements.Spinner'] = stubComponent({displayName: 'Spinner'});
|
||||
components['views.messages.DateSeparator'] = stubComponent({displayName: 'DateSeparator'});
|
||||
components['views.messages.MessageTimestamp'] = stubComponent({displayName: 'MessageTimestamp'});
|
||||
components['views.messages.SenderProfile'] = stubComponent({displayName: 'SenderProfile'});
|
||||
|
||||
sdk.loadSkin(skin);
|
||||
|
||||
module.exports = sdk;
|
Reference in New Issue
Block a user