From 8a64123ab8175a67e4974a8cf13f660b9905eeba Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 27 Oct 2017 16:55:04 +0100 Subject: [PATCH] Add sensible missing entry generator for MELS tests Fixes vector-im/riot-web#5426 (because we don't test plurals anywhere else) --- test/components/views/elements/MemberEventListSummary-test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/components/views/elements/MemberEventListSummary-test.js b/test/components/views/elements/MemberEventListSummary-test.js index 1618fe4cfe..436133c717 100644 --- a/test/components/views/elements/MemberEventListSummary-test.js +++ b/test/components/views/elements/MemberEventListSummary-test.js @@ -88,6 +88,9 @@ describe('MemberEventListSummary', function() { sandbox = testUtils.stubClient(); languageHandler.setLanguage('en').done(done); + languageHandler.setMissingEntryGenerator(function(key) { + return key.split('|', 2)[1]; + }); }); afterEach(function() {