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 UIA proper
This commit is contained in:
@ -97,11 +97,14 @@ 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",
|
||||
identifier: {
|
||||
type: "m.id.user",
|
||||
user: "@user:id",
|
||||
},
|
||||
})).toBe(true);
|
||||
// let the request complete
|
||||
return Promise.delay(1);
|
||||
|
Reference in New Issue
Block a user