mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
Finally fix tests
This commit is contained in:
parent
698fd3b897
commit
ba5238d86a
2 changed files with 2 additions and 3 deletions
|
@ -96,7 +96,7 @@ export const PasswordAuthEntry = React.createClass({
|
|||
user: this.props.matrixClient.credentials.userId,
|
||||
identifier: {
|
||||
type: "m.id.user",
|
||||
user: this.props.matrixClient.getUserId(),
|
||||
user: this.props.matrixClient.credentials.userId,
|
||||
},
|
||||
password: this.state.password,
|
||||
});
|
||||
|
|
|
@ -97,11 +97,10 @@ describe('InteractiveAuthDialog', function() {
|
|||
ReactTestUtils.Simulate.submit(formNode, {});
|
||||
|
||||
expect(doRequest.callCount).toEqual(1);
|
||||
expect(doRequest.calledWithExactly({
|
||||
expect(doRequest.calledWithMatch({
|
||||
session: "sess",
|
||||
type: "m.login.password",
|
||||
password: "s3kr3t",
|
||||
user: "@user:id", // TODO: Remove this. See https://github.com/vector-im/riot-web/issues/10312
|
||||
identifier: {
|
||||
type: "m.id.user",
|
||||
user: "@user:id",
|
||||
|
|
Loading…
Reference in a new issue