Skip to content

Commit

Permalink
Fix tests to use new server config options
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed May 3, 2019
1 parent bf97fd6 commit a5092dc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Unexpected error preparing the app. See console for details.": "Unexpected error preparing the app. See console for details.",
"Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.": "Invalid configuration: can only specify one of default_server_config, default_server_name, or default_hs_url.",
"Invalid configuration: no default server specified": "Invalid configuration: no default server specified",
"Invalid configuration: no default server specified.": "Invalid configuration: no default server specified.",
"Riot Desktop on %(platformName)s": "Riot Desktop on %(platformName)s",
"Unknown device": "Unknown device",
"%(appName)s via %(browserName)s on %(osName)s": "%(appName)s via %(browserName)s on %(osName)s",
Expand Down
12 changes: 11 additions & 1 deletion test/app-tests/joining.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,18 @@ describe('joining a room', function() {

PlatformPeg.set(new WebPlatform());

const config = {
validated_server_config: {
hsUrl: HS_URL,
hsName: "TEST_ENVIRONMENT",
hsNameIsDifferent: false, // yes, we lie
isUrl: IS_URL,
identityEnabled: true,
},
};

const mc = (
<MatrixChat config={{}}
<MatrixChat config={config}
makeRegistrationUrl={()=>{throw new Error("unimplemented");}}
initialScreenAfterLogin={{
screen: 'directory',
Expand Down
7 changes: 7 additions & 0 deletions test/app-tests/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ describe('loading:', function() {
const config = Object.assign({
default_hs_url: DEFAULT_HS_URL,
default_is_url: DEFAULT_IS_URL,
validated_server_config: {
hsUrl: DEFAULT_HS_URL,
hsName: "TEST_ENVIRONMENT",
hsNameIsDifferent: false, // yes, we lie
isUrl: DEFAULT_IS_URL,
identityEnabled: true,
},
embeddedPages: {
homeUrl: 'data:text/html;charset=utf-8;base64,PGh0bWw+PC9odG1sPg==',
},
Expand Down

0 comments on commit a5092dc

Please sign in to comment.