From afaaa8ab88442ce93ec3f4ada1226cde7ed2d542 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 13 Oct 2016 21:14:34 +0300 Subject: [PATCH] add failing test case for #5112 --- test/translator.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/translator.js b/test/translator.js index 4dc4156e27..c55235f02a 100644 --- a/test/translator.js +++ b/test/translator.js @@ -154,6 +154,14 @@ describe('new Translator(language)', function(){ done(); }); }); + + it('should translate [[pages:users/latest]] properly', function(done) { + var translator = new Translator('en_GB'); + translator.translate('[[pages:users/latest]]').then(function(translated) { + assert.strictEqual('[[pages:users/latest]]', 'Latest Users'); + done(); + }); + }); }); });