Fix test fail

This commit is contained in:
David Baker 2019-06-10 16:18:58 +01:00
parent a8a4ca2ed1
commit cb4af9d043

View File

@ -92,7 +92,7 @@ export default React.createClass({
this._unmounted = false;
this._authLogic = new InteractiveAuth({
authData: this.props.authData,
doRequest: this.props.makeRequest,
doRequest: this._requestCallback,
setBusy: this._setBusy,
inputs: this.props.inputs,
stateUpdated: this._authStateUpdated,
@ -168,6 +168,13 @@ export default React.createClass({
});
},
_requestCallback: function(auth) {
// This wrapper just exists because the js-sdk passes a second
// 'busy' param for backwards compat. This throws the tests off
// so discard it here.
return this.props.makeRequest(auth);
},
_setBusy: function(busy) {
// if we've started doing stuff, reset the error messages
if (busy) {