mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Pass through i18n keys in karma tests
This commit is contained in:
parent
0ab9486829
commit
e07f9a8bc9
@ -28,6 +28,7 @@ import jssdk from 'matrix-js-sdk';
|
|||||||
|
|
||||||
import sdk from 'matrix-react-sdk';
|
import sdk from 'matrix-react-sdk';
|
||||||
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
|
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
|
||||||
|
import * as languageHandler from 'matrix-react-sdk/lib/languageHandler';
|
||||||
|
|
||||||
import test_utils from '../test-utils';
|
import test_utils from '../test-utils';
|
||||||
import MockHttpBackend from '../mock-request';
|
import MockHttpBackend from '../mock-request';
|
||||||
@ -61,6 +62,10 @@ describe('loading:', function () {
|
|||||||
|
|
||||||
windowLocation = null;
|
windowLocation = null;
|
||||||
matrixChat = null;
|
matrixChat = null;
|
||||||
|
|
||||||
|
languageHandler.setMissingEntryGenerator(function(key) {
|
||||||
|
return key.split('|', 2)[1];
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user