Merge branch 'master' of github.com:NodeBB/NodeBB

This commit is contained in:
Julian Lam
2016-10-13 14:45:23 -04:00
2 changed files with 9 additions and 1 deletions

View File

@@ -5,4 +5,4 @@ languages:
PHP: true
exclude_paths:
- "public/vendor/*"
- "tests/*"
- "test/*"

View File

@@ -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();
});
});
});
});