Skip to content

Commit e07f9a8

Browse files
committed
Pass through i18n keys in karma tests
1 parent 0ab9486 commit e07f9a8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎test/app-tests/loading.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import jssdk from 'matrix-js-sdk';
2828

2929
import sdk from 'matrix-react-sdk';
3030
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
31+
import * as languageHandler from 'matrix-react-sdk/lib/languageHandler';
3132

3233
import test_utils from '../test-utils';
3334
import MockHttpBackend from '../mock-request';
@@ -61,6 +62,10 @@ describe('loading:', function () {
6162

6263
windowLocation = null;
6364
matrixChat = null;
65+
66+
languageHandler.setMissingEntryGenerator(function(key) {
67+
return key.split('|', 2)[1];
68+
});
6469
});
6570

6671
afterEach(function() {

0 commit comments

Comments
 (0)