failing tests for #5102

This commit is contained in:
barisusakli
2016-10-12 11:28:59 +03:00
parent dd7839b7f5
commit 59fb7d7eef
2 changed files with 15 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ describe('new Translator(language)', function(){
});
it('should properly escape % and ,', function(done) {
var translator = new Translator('en_GB');
var translator = new Translator('en_GB');
var title = 'Test 1, 2, 3 % salmon';
title = title.replace(/%/g, '%').replace(/,/g, ',');
@@ -126,6 +126,13 @@ describe('new Translator(language)', function(){
done();
});
it('should not translate [[derp] some text', function(done) {
var translator = new Translator('en_GB');
translator.translate('[[derp] some text').then(function(translated) {
assert.strictEqual('[[derp] some text', translated);
done();
});
});
});
});

View File

@@ -112,5 +112,12 @@ describe('translator adaptor', function(){
done();
});
});
it('should not translate [[derp] some text', function(done) {
translator.translate('[[derp] some text', function(translated) {
assert.strictEqual('[[derp] some text', translated);
done();
});
});
});
});