From afaaa8ab88442ce93ec3f4ada1226cde7ed2d542 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 13 Oct 2016 21:14:34 +0300 Subject: [PATCH 1/2] 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(); + }); + }); }); }); From 41fc206b179cbb572cb5937bce259312d0550240 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 13 Oct 2016 21:42:52 +0300 Subject: [PATCH 2/2] update exclude folder --- .codeclimate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 2d3659da46..81b8bd3c4c 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -5,4 +5,4 @@ languages: PHP: true exclude_paths: - "public/vendor/*" -- "tests/*" \ No newline at end of file +- "test/*" \ No newline at end of file