Merge pull request #23965 from MegaphoneJon/contribution-view-perm-fix
[civicrm-core.git] / tests / qunit / crm-translate / test.js
index 6ba3cd9eb2a5143961935d2d7250465dc19a45b3..82f196959c48eaf9f27bab87c6dc3613512e0483 100644 (file)
@@ -1,11 +1,15 @@
 module('Translation');
 
 test('ts()', function() {
+  equal(ts('Lexicographical enigma'), "Lexicographical enigma", "If a string has no translation, pass it through");
   equal(ts('One, two, three'), "Un, deux, trois", "We expect translations to work");
+  equal(ts('I know'), "Je sais", "We expect translations to work");
 });
 
 test('CRM.ts()', function() {
   (function (ts) {
-    equal(ts('One, two, three'), "Un, deux, trois", "We expect translations to work");
+    equal(ts('Lexicographical enigma'), "Lexicographical enigma", "If a string has no translation, pass it through");
+    equal(ts('One, two, three'), "Un, deux, trois", "Fallback to translations from default domain");
+    equal(ts('I know'), "Je connais", "We expect translations to work");
   }(CRM.ts('org.example.foo')));
 });