failing tests for #5102

v1.18.x
barisusakli 8 years ago
parent dd7839b7f5
commit 59fb7d7eef

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

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

Loading…
Cancel
Save