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:
parent
dfc8cf3f54
commit
e44f3cc709
8 changed files with 146 additions and 143 deletions
|
@ -3,8 +3,6 @@
|
|||
import sinon from 'sinon';
|
||||
import q from 'q';
|
||||
import ReactTestUtils from 'react-addons-test-utils';
|
||||
import * as counterpart from 'counterpart-riot';
|
||||
var languageHandler = require("../src/languageHandler");
|
||||
|
||||
import peg from '../src/MatrixClientPeg.js';
|
||||
import jssdk from 'matrix-js-sdk';
|
||||
|
@ -67,10 +65,6 @@ export function beforeEach(context) {
|
|||
|
||||
console.log(desc);
|
||||
console.log(new Array(1 + desc.length).join("="));
|
||||
|
||||
const languages = languageHandler.getNormalizedLanguageKeys('en');
|
||||
languageHandler.setLanguage(languages, counterpart);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue