1
0
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:
Richard van der Hoff
2016-04-07 17:49:39 +01:00
parent a2168efcda
commit 7a821ce9d1
3 changed files with 28 additions and 18 deletions

27
test/skinned-sdk.js Normal file
View 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;