From a9419135aade987d613d0669cbb7276f3df11413 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 11 Jul 2019 14:38:28 -0600 Subject: [PATCH] Fix tests to use UIA proper --- .../components/views/dialogs/InteractiveAuthDialog-test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/components/views/dialogs/InteractiveAuthDialog-test.js b/test/components/views/dialogs/InteractiveAuthDialog-test.js index 2d1fb29bd9..95f76dfd3e 100644 --- a/test/components/views/dialogs/InteractiveAuthDialog-test.js +++ b/test/components/views/dialogs/InteractiveAuthDialog-test.js @@ -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);