You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Fix tests to use new serverConfig prop
This commit is contained in:
@ -22,6 +22,7 @@ import ReactTestUtils from 'react-dom/test-utils';
|
||||
import sdk from 'matrix-react-sdk';
|
||||
import SdkConfig from '../../../../src/SdkConfig';
|
||||
import * as TestUtils from '../../../test-utils';
|
||||
import {mkServerConfig} from "../../../test-utils";
|
||||
|
||||
const Login = sdk.getComponent(
|
||||
'structures.auth.Login',
|
||||
@ -44,8 +45,7 @@ describe('Login', function() {
|
||||
|
||||
function render() {
|
||||
return ReactDOM.render(<Login
|
||||
defaultHsUrl="https://matrix.org"
|
||||
defaultIsUrl="https://vector.im"
|
||||
serverConfig={mkServerConfig("https://matrix.org", "https://vector.im")}
|
||||
onLoggedIn={() => {}}
|
||||
onRegisterClick={() => {}}
|
||||
onServerConfigChange={() => {}}
|
||||
|
@ -22,6 +22,7 @@ import ReactTestUtils from 'react-dom/test-utils';
|
||||
import sdk from 'matrix-react-sdk';
|
||||
import SdkConfig from '../../../../src/SdkConfig';
|
||||
import * as TestUtils from '../../../test-utils';
|
||||
import {mkServerConfig} from "../../../test-utils";
|
||||
|
||||
const Registration = sdk.getComponent(
|
||||
'structures.auth.Registration',
|
||||
@ -44,8 +45,7 @@ describe('Registration', function() {
|
||||
|
||||
function render() {
|
||||
return ReactDOM.render(<Registration
|
||||
defaultHsUrl="https://matrix.org"
|
||||
defaultIsUrl="https://vector.im"
|
||||
serverConfig={mkServerConfig("https://matrix.org", "https://vector.im")}
|
||||
makeRegistrationUrl={() => {}}
|
||||
onLoggedIn={() => {}}
|
||||
onLoginClick={() => {}}
|
||||
|
Reference in New Issue
Block a user