Fix tests

* Serve translation files from the karma server
 * Port UserSettingsStore to ES6 exports because the test runner
   gets confused by ES6 importing a commonjs module
 * Remove extra spaces in translations strings for MELS
 * Fix 'his/her' back to be 'their'
 * Change test to expect singular 'invitation' for a single person
   (there may be multiple invitations, but IMO this should be
   'rejected n invitations' and we can play with the wording later,
   I don't think the singular is any worse than the plural).
 * set language in the MELS tests (and wait for it to complete)
 * Don't bother setting lang in other tests for now
This commit is contained in:
David Baker
2017-05-26 11:58:45 +01:00
parent dfc8cf3f54
commit e44f3cc709
8 changed files with 146 additions and 143 deletions
+32 -32
View File
@@ -612,30 +612,30 @@
"quote":"quote",
"bullet":"bullet",
"numbullet":"numbullet",
"%(severalUsers)s joined %(repeats)s times": "%(severalUsers)s joined %(repeats)s times",
"%(oneUser)s joined %(repeats)s times": "%(oneUser)s joined %(repeats)s times",
"%(severalUsers)s joined": "%(severalUsers)s joined",
"%(oneUser)s joined": "%(oneUser)s joined",
"%(severalUsers)s left %(repeats)s times": "%(severalUsers)s left %(repeats)s times",
"%(oneUser)s left %(repeats)s times": "%(oneUser)s left %(repeats)s times",
"%(severalUsers)s left": "%(severalUsers)s left",
"%(oneUser)s left": "%(oneUser)s left",
"%(severalUsers)s joined and left %(repeats)s times": "%(severalUsers)s joined and left %(repeats)s times",
"%(oneUser)s joined and left %(repeats)s times": "%(oneUser)s joined and left %(repeats)s times",
"%(severalUsers)s joined and left": "%(severalUsers)s joined and left",
"%(oneUser)s joined and left": "%(oneUser)s joined and left",
"%(severalUsers)s left and rejoined %(repeats)s times": "%(severalUsers)s left and rejoined %(repeats)s times",
"%(oneUser)s left and rejoined %(repeats)s times": "%(oneUser)s left and rejoined %(repeats)s times",
"%(severalUsers)s left and rejoined": "%(severalUsers)s left and rejoined",
"%(oneUser)s left and rejoined": "%(oneUser)s left and rejoined",
"%(severalUsers)s rejected their invitations %(repeats)s times": "%(severalUsers)s rejected their invitations %(repeats)s times",
"%(oneUser)s rejected his/her invitation %(repeats)s times": "%(oneUser)s rejected his/her invitation %(repeats)s times",
"%(severalUsers)s rejected their invitations": "%(severalUsers)s rejected their invitations",
"%(oneUser)s rejected his/her invitation": "%(oneUser)s rejected his/her invitation",
"%(severalUsers)s had their invitations withdrawn %(repeats)s times": "%(severalUsers)s had their invitations withdrawn %(repeats)s times",
"%(oneUser)s had his/her invitation withdrawn %(repeats)s times": "%(oneUser)s had his/her invitation withdrawn %(repeats)s times",
"%(severalUsers)s had their invitations withdrawn": "%(severalUsers)s had their invitations withdrawn",
"%(oneUser)s had his/her invitation withdrawn": "%(oneUser)s had his/her invitation withdrawn",
"%(severalUsers)sjoined %(repeats)s times": "%(severalUsers)sjoined %(repeats)s times",
"%(oneUser)sjoined %(repeats)s times": "%(oneUser)sjoined %(repeats)s times",
"%(severalUsers)sjoined": "%(severalUsers)sjoined",
"%(oneUser)sjoined": "%(oneUser)sjoined",
"%(severalUsers)sleft %(repeats)s times": "%(severalUsers)sleft %(repeats)s times",
"%(oneUser)sleft %(repeats)s times": "%(oneUser)sleft %(repeats)s times",
"%(severalUsers)sleft": "%(severalUsers)sleft",
"%(oneUser)sleft": "%(oneUser)sleft",
"%(severalUsers)sjoined and left %(repeats)s times": "%(severalUsers)sjoined and left %(repeats)s times",
"%(oneUser)sjoined and left %(repeats)s times": "%(oneUser)sjoined and left %(repeats)s times",
"%(severalUsers)sjoined and left": "%(severalUsers)sjoined and left",
"%(oneUser)sjoined and left": "%(oneUser)sjoined and left",
"%(severalUsers)sleft and rejoined %(repeats)s times": "%(severalUsers)sleft and rejoined %(repeats)s times",
"%(oneUser)sleft and rejoined %(repeats)s times": "%(oneUser)sleft and rejoined %(repeats)s times",
"%(severalUsers)sleft and rejoined": "%(severalUsers)sleft and rejoined",
"%(oneUser)sleft and rejoined": "%(oneUser)sleft and rejoined",
"%(severalUsers)srejected their invitations %(repeats)s times": "%(severalUsers)srejected their invitations %(repeats)s times",
"%(oneUser)srejected their invitation %(repeats)s times": "%(oneUser)srejected their invitation %(repeats)s times",
"%(severalUsers)srejected their invitations": "%(severalUsers)srejected their invitations",
"%(oneUser)srejected their invitation": "%(oneUser)srejected their invitation",
"%(severalUsers)shad their invitations withdrawn %(repeats)s times": "%(severalUsers)shad their invitations withdrawn %(repeats)s times",
"%(oneUser)shad their invitation withdrawn %(repeats)s times": "%(oneUser)shad their invitation withdrawn %(repeats)s times",
"%(severalUsers)shad their invitations withdrawn": "%(severalUsers)shad their invitations withdrawn",
"%(oneUser)shad their invitation withdrawn": "%(oneUser)shad their invitation withdrawn",
"were invited %(repeats)s times": "were invited %(repeats)s times",
"was invited %(repeats)s times": "was invited %(repeats)s times",
"were invited": "were invited",
@@ -652,12 +652,12 @@
"was kicked %(repeats)s times": "was kicked %(repeats)s times",
"were kicked": "were kicked",
"was kicked": "was kicked",
"%(severalUsers)s changed their name %(repeats)s times": "%(severalUsers)s changed their name %(repeats)s times",
"%(oneUser)s changed his/her name %(repeats)s times": "%(oneUser)s changed his/her name %(repeats)s times",
"%(severalUsers)s changed their name": "%(severalUsers)s changed their name",
"%(oneUser)s changed his/her name": "%(oneUser)s changed his/her name",
"%(severalUsers)s changed their avatar %(repeats)s times": "%(severalUsers)s changed their avatar %(repeats)s times",
"%(oneUser)s changed his/her avatar %(repeats)s times": "%(oneUser)s changed his/her avatar %(repeats)s times",
"%(severalUsers)s changed their avatar": "%(severalUsers)s changed their avatar",
"%(oneUser)s changed his/her avatar": "%(oneUser)s changed his/her avatar"
"%(severalUsers)schanged their name %(repeats)s times": "%(severalUsers)schanged their name %(repeats)s times",
"%(oneUser)schanged their name %(repeats)s times": "%(oneUser)schanged their name %(repeats)s times",
"%(severalUsers)schanged their name": "%(severalUsers)schanged their name",
"%(oneUser)schanged their name": "%(oneUser)schanged their name",
"%(severalUsers)schanged their avatar %(repeats)s times": "%(severalUsers)schanged their avatar %(repeats)s times",
"%(oneUser)schanged their avatar %(repeats)s times": "%(oneUser)schanged their avatar %(repeats)s times",
"%(severalUsers)schanged their avatar": "%(severalUsers)schanged their avatar",
"%(oneUser)schanged their avatar": "%(oneUser)schanged their avatar"
}