Finally fix tests

This commit is contained in:
Travis Ralston 2019-07-11 15:01:56 -06:00
parent 698fd3b897
commit ba5238d86a
2 changed files with 2 additions and 3 deletions

View file

@ -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,
});

View file

@ -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",