mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-09 22:55:12 +00:00
Pass through i18n keys in karma tests
This commit is contained in:
parent
0ab9486829
commit
e07f9a8bc9
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,7 @@ import jssdk from 'matrix-js-sdk';
|
|||
|
||||
import sdk from 'matrix-react-sdk';
|
||||
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
|
||||
import * as languageHandler from 'matrix-react-sdk/lib/languageHandler';
|
||||
|
||||
import test_utils from '../test-utils';
|
||||
import MockHttpBackend from '../mock-request';
|
||||
|
@ -61,6 +62,10 @@ describe('loading:', function () {
|
|||
|
||||
windowLocation = null;
|
||||
matrixChat = null;
|
||||
|
||||
languageHandler.setMissingEntryGenerator(function(key) {
|
||||
return key.split('|', 2)[1];
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
|
|
Loading…
Reference in a new issue