Fix tests to use UIA proper
parent
862fb16120
commit
a9419135aa
|
@ -97,11 +97,14 @@ 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",
|
identifier: {
|
||||||
|
type: "m.id.user",
|
||||||
|
user: "@user:id",
|
||||||
|
},
|
||||||
})).toBe(true);
|
})).toBe(true);
|
||||||
// let the request complete
|
// let the request complete
|
||||||
return Promise.delay(1);
|
return Promise.delay(1);
|
||||||
|
|
Loading…
Reference in New Issue