From e07f9a8bc90913c45e7807e380856e8321f031ab Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 May 2017 15:29:58 +0100 Subject: [PATCH] Pass through i18n keys in karma tests --- test/app-tests/loading.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/app-tests/loading.js b/test/app-tests/loading.js index d3844522..86fad118 100644 --- a/test/app-tests/loading.js +++ b/test/app-tests/loading.js @@ -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() {