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 diff --git a/test/translator.js b/test/translator.js index 0e18a5f29b..968f9118ce 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(); + }); + }); }); });