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,
|
user: this.props.matrixClient.credentials.userId,
|
||||||
identifier: {
|
identifier: {
|
||||||
type: "m.id.user",
|
type: "m.id.user",
|
||||||
user: this.props.matrixClient.getUserId(),
|
user: this.props.matrixClient.credentials.userId,
|
||||||
},
|
},
|
||||||
password: this.state.password,
|
password: this.state.password,
|
||||||
});
|
});
|
||||||
|
|
|
@ -97,11 +97,10 @@ describe('InteractiveAuthDialog', function() {
|
||||||
ReactTestUtils.Simulate.submit(formNode, {});
|
ReactTestUtils.Simulate.submit(formNode, {});
|
||||||
|
|
||||||
expect(doRequest.callCount).toEqual(1);
|
expect(doRequest.callCount).toEqual(1);
|
||||||
expect(doRequest.calledWithExactly({
|
expect(doRequest.calledWithMatch({
|
||||||
session: "sess",
|
session: "sess",
|
||||||
type: "m.login.password",
|
type: "m.login.password",
|
||||||
password: "s3kr3t",
|
password: "s3kr3t",
|
||||||
user: "@user:id", // TODO: Remove this. See https://github.com/vector-im/riot-web/issues/10312
|
|
||||||
identifier: {
|
identifier: {
|
||||||
type: "m.id.user",
|
type: "m.id.user",
|
||||||
user: "@user:id",
|
user: "@user:id",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue